GDBserver
Macros | Functions | Variables
remote-utils.h File Reference

Go to the source code of this file.

Macros

#define STDIO_CONNECTION_NAME   "stdio"
 

Functions

int gdb_connected (void)
 
int remote_connection_is_stdio (void)
 
ptid_t read_ptid (char *buf, char **obuf)
 
char * write_ptid (char *buf, ptid_t ptid)
 
int putpkt (char *buf)
 
int putpkt_binary (char *buf, int len)
 
int putpkt_notif (char *buf)
 
int getpkt (char *buf)
 
void remote_prepare (char *name)
 
void remote_open (char *name)
 
void remote_close (void)
 
void write_ok (char *buf)
 
void write_enn (char *buf)
 
void initialize_async_io (void)
 
void enable_async_io (void)
 
void disable_async_io (void)
 
void check_remote_input_interrupt_request (void)
 
void new_thread_notify (int id)
 
void dead_thread_notify (int id)
 
void prepare_resume_reply (char *buf, ptid_t ptid, struct target_waitstatus *status)
 
const char * decode_address_to_semicolon (CORE_ADDR *addrp, const char *start)
 
void decode_address (CORE_ADDR *addrp, const char *start, int len)
 
void decode_m_packet (char *from, CORE_ADDR *mem_addr_ptr, unsigned int *len_ptr)
 
void decode_M_packet (char *from, CORE_ADDR *mem_addr_ptr, unsigned int *len_ptr, unsigned char **to_p)
 
int decode_X_packet (char *from, int packet_len, CORE_ADDR *mem_addr_ptr, unsigned int *len_ptr, unsigned char **to_p)
 
int decode_xfer_write (char *buf, int packet_len, CORE_ADDR *offset, unsigned int *len, unsigned char *data)
 
int decode_search_memory_packet (const char *buf, int packet_len, CORE_ADDR *start_addrp, CORE_ADDR *search_space_lenp, gdb_byte *pattern, unsigned int *pattern_lenp)
 
void clear_symbol_cache (struct sym_cache **symcache_p)
 
int look_up_one_symbol (const char *name, CORE_ADDR *addrp, int may_ask_gdb)
 
int relocate_instruction (CORE_ADDR *to, CORE_ADDR oldloc)
 
void monitor_output (const char *msg)
 

Variables

int remote_debug
 
int noack_mode
 
int transport_is_reliable
 

Macro Definition Documentation

#define STDIO_CONNECTION_NAME   "stdio"

Definition at line 28 of file remote-utils.h.

Referenced by captured_main(), remote_open(), and remote_prepare().

Function Documentation

void check_remote_input_interrupt_request ( void  )

Definition at line 766 of file remote-utils.c.

References input_interrupt(), INVALID_DESCRIPTOR, and remote_desc.

Referenced by get_child_debug_event().

void clear_symbol_cache ( struct sym_cache **  symcache_p)

Definition at line 1398 of file remote-utils.c.

References free_sym_cache(), and sym_cache::next.

Referenced by remove_process().

void dead_thread_notify ( int  id)

Definition at line 1092 of file remote-utils.c.

References disable_async_io(), enable_async_io(), own_buf, and putpkt().

void decode_address ( CORE_ADDR addrp,
const char *  start,
int  len 
)

Definition at line 421 of file remote-utils.c.

References fromhex().

Referenced by decode_address_to_semicolon(), handle_query(), and look_up_one_symbol().

const char* decode_address_to_semicolon ( CORE_ADDR addrp,
const char *  start 
)
void decode_m_packet ( char *  from,
CORE_ADDR mem_addr_ptr,
unsigned int *  len_ptr 
)
void decode_M_packet ( char *  from,
CORE_ADDR mem_addr_ptr,
unsigned int *  len_ptr,
unsigned char **  to_p 
)

Definition at line 1290 of file remote-utils.c.

References fromhex(), hex2bin(), and xmalloc().

Referenced by process_serial_event(), and relocate_instruction().

int decode_search_memory_packet ( const char *  buf,
int  packet_len,
CORE_ADDR start_addrp,
CORE_ADDR search_space_lenp,
gdb_byte pattern,
unsigned int *  pattern_lenp 
)

Definition at line 1372 of file remote-utils.c.

References decode_address_to_semicolon(), and remote_unescape_input().

Referenced by handle_search_memory().

int decode_X_packet ( char *  from,
int  packet_len,
CORE_ADDR mem_addr_ptr,
unsigned int *  len_ptr,
unsigned char **  to_p 
)

Definition at line 1316 of file remote-utils.c.

References fromhex(), remote_unescape_input(), and xmalloc().

Referenced by process_serial_event(), and relocate_instruction().

int decode_xfer_write ( char *  buf,
int  packet_len,
CORE_ADDR offset,
unsigned int *  len,
unsigned char *  data 
)

Definition at line 1348 of file remote-utils.c.

References fromhex(), and remote_unescape_input().

Referenced by handle_qxfer().

void disable_async_io ( void  )
void enable_async_io ( void  )

Definition at line 820 of file remote-utils.c.

References input_interrupt().

Referenced by dead_thread_notify(), new_thread_notify(), and resume().

int gdb_connected ( void  )

Definition at line 126 of file remote-utils.c.

References INVALID_DESCRIPTOR, and remote_desc.

Referenced by handle_target_event(), and stop_tracing().

int getpkt ( char *  buf)
void initialize_async_io ( void  )

Definition at line 852 of file remote-utils.c.

References disable_async_io(), and unblock_async_io().

Referenced by captured_main().

int look_up_one_symbol ( const char *  name,
CORE_ADDR addrp,
int  may_ask_gdb 
)
void monitor_output ( const char *  msg)
void new_thread_notify ( int  id)

Definition at line 1074 of file remote-utils.c.

References disable_async_io(), enable_async_io(), own_buf, putpkt(), and server_waiting.

void prepare_resume_reply ( char *  buf,
ptid_t  ptid,
struct target_waitstatus *  status 
)
int putpkt ( char *  buf)
int putpkt_binary ( char *  buf,
int  len 
)

Definition at line 700 of file remote-utils.c.

References putpkt_binary_1().

Referenced by process_serial_event(), and putpkt().

int putpkt_notif ( char *  buf)

Definition at line 716 of file remote-utils.c.

References putpkt_binary_1().

Referenced by notif_push().

ptid_t read_ptid ( char *  buf,
char **  obuf 
)
int relocate_instruction ( CORE_ADDR to,
CORE_ADDR  oldloc 
)
void remote_close ( void  )
int remote_connection_is_stdio ( void  )
void remote_open ( char *  name)
void remote_prepare ( char *  name)
void write_enn ( char *  buf)
void write_ok ( char *  buf)
char* write_ptid ( char *  buf,
ptid_t  ptid 
)

Variable Documentation

int noack_mode

Definition at line 116 of file remote-utils.c.

Referenced by captured_main(), getpkt(), handle_general_set(), and putpkt_binary_1().

int remote_debug

Definition at line 103 of file remote-utils.c.

int transport_is_reliable

Definition at line 118 of file remote-utils.c.

Referenced by handle_query(), and remote_prepare().