|
GDBserver
|
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 (const char *buf, const 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 (const char *name) |
| void | remote_open (const 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 | 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 |
| #define STDIO_CONNECTION_NAME "stdio" |
Definition at line 28 of file remote-utils.h.
Referenced by captured_main(), remote_open(), and remote_prepare().
| void check_remote_input_interrupt_request | ( | void | ) |
Definition at line 745 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 1417 of file remote-utils.c.
References free_sym_cache(), and sym_cache::next.
Referenced by remove_process().
| void decode_address | ( | CORE_ADDR * | addrp, |
| const char * | start, | ||
| int | len | ||
| ) |
Definition at line 399 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 | ||
| ) |
Definition at line 416 of file remote-utils.c.
References decode_address().
Referenced by decode_search_memory_packet(), handle_general_set(), and linux_qxfer_libraries_svr4().
| void decode_m_packet | ( | char * | from, |
| CORE_ADDR * | mem_addr_ptr, | ||
| unsigned int * | len_ptr | ||
| ) |
Definition at line 1287 of file remote-utils.c.
References fromhex().
Referenced by decode_xfer_read(), look_up_one_symbol(), process_serial_event(), and relocate_instruction().
| void decode_M_packet | ( | char * | from, |
| CORE_ADDR * | mem_addr_ptr, | ||
| unsigned int * | len_ptr, | ||
| unsigned char ** | to_p | ||
| ) |
Definition at line 1309 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 1391 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 1335 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 1367 of file remote-utils.c.
References fromhex(), offset, and remote_unescape_input().
Referenced by handle_qxfer().
| void disable_async_io | ( | void | ) |
Definition at line 814 of file remote-utils.c.
References async_io_enabled, and block_unblock_async_io().
Referenced by initialize_async_io(), process_serial_event(), remote_close(), and resume().
| void enable_async_io | ( | void | ) |
Definition at line 799 of file remote-utils.c.
References async_io_enabled, and block_unblock_async_io().
Referenced by resume().
| int gdb_connected | ( | void | ) |
Definition at line 129 of file remote-utils.c.
References INVALID_DESCRIPTOR, and remote_desc.
Referenced by handle_target_event(), and stop_tracing().
| int getpkt | ( | char * | buf | ) |
Definition at line 927 of file remote-utils.c.
References debug_flush(), debug_printf(), fromhex(), noack_mode, readchar(), readchar_bufcnt, readchar_bufp, remote_debug, target_ops::request_interrupt, the_target, and write_prim().
Referenced by look_up_one_symbol(), process_serial_event(), and relocate_instruction().
| void initialize_async_io | ( | void | ) |
Definition at line 829 of file remote-utils.c.
References async_io_enabled, disable_async_io(), and input_interrupt().
Referenced by captured_main().
| int look_up_one_symbol | ( | const char * | name, |
| CORE_ADDR * | addrp, | ||
| int | may_ask_gdb | ||
| ) |
Definition at line 1436 of file remote-utils.c.
References sym_cache::addr, bin2hex(), current_process(), decode_address(), decode_m_packet(), free(), getpkt(), handle_v_requests(), mem_buf, sym_cache::name, name, sym_cache::next, own_buf, putpkt(), putpkt_binary(), read_inferior_memory(), startswith(), process_info::symbol_cache, warning(), write_enn(), xmalloc(), XNEW, and xstrdup().
Referenced by find_minimal_symbol_address(), thread_db_look_up_one_symbol(), thread_db_look_up_symbols(), and tracepoint_look_up_symbols().
| void monitor_output | ( | const char * | msg | ) |
Definition at line 1630 of file remote-utils.c.
References bin2hex(), free(), putpkt(), and xmalloc().
Referenced by handle_monitor_command(), handle_output_debug_string(), monitor_show_help(), parse_debug_format_options(), and thread_db_handle_monitor_command().
| void prepare_resume_reply | ( | char * | buf, |
| ptid_t | ptid, | ||
| struct target_waitstatus * | status | ||
| ) |
Definition at line 1081 of file remote-utils.c.
References bin2hex(), current_target_desc(), current_thread, debug_printf(), debug_threads, disable_packet_Tthread, dlls_changed, error(), target_desc::expedite_regs, find_regno(), general_thread, get_thread_regcache(), hwbreak_feature, multi_process, non_stop, outreg(), ptid_equal(), ptid_get_pid(), report_exec_events, report_fork_events, report_thread_events, report_vfork_events, target_ops::stopped_by_watchpoint, target_ops::stopped_data_address, swbreak_feature, switch_to_thread(), target_core_of_thread, target_pid_to_str(), target_stopped_by_hw_breakpoint, target_stopped_by_sw_breakpoint, regcache::tdesc, the_target, tohex(), using_threads, write_ptid(), and xfree().
Referenced by handle_pending_status(), handle_status(), handle_v_attach(), handle_v_run(), resume(), and vstop_notif_reply().
| int putpkt | ( | char * | buf | ) |
Definition at line 689 of file remote-utils.c.
References putpkt_binary().
Referenced by captured_main(), handle_detach(), look_up_one_symbol(), monitor_output(), process_serial_event(), and relocate_instruction().
| int putpkt_binary | ( | char * | buf, |
| int | len | ||
| ) |
Definition at line 679 of file remote-utils.c.
References putpkt_binary_1().
Referenced by look_up_one_symbol(), process_serial_event(), and putpkt().
| int putpkt_notif | ( | char * | buf | ) |
Definition at line 695 of file remote-utils.c.
References putpkt_binary_1().
Referenced by notif_push().
| ptid_t read_ptid | ( | const char * | buf, |
| const char ** | obuf | ||
| ) |
Definition at line 529 of file remote-utils.c.
References error(), get_first_process(), hex_or_minus_one(), pid_of(), ptid_build(), and unpack_varlen_hex().
Referenced by handle_query(), handle_v_cont(), and process_serial_event().
Definition at line 1549 of file remote-utils.c.
References bin2hex(), decode_m_packet(), decode_M_packet(), decode_X_packet(), free(), getpkt(), mem_buf, own_buf, paddress(), putpkt(), read_inferior_memory(), startswith(), unpack_varlen_hex(), warning(), write_enn(), write_inferior_memory(), write_ok(), and xmalloc().
Referenced by i386_install_fast_tracepoint_jump_pad().
| void remote_close | ( | void | ) |
Definition at line 377 of file remote-utils.c.
References delete_file_handler(), disable_async_io(), INVALID_DESCRIPTOR, remote_connection_is_stdio(), remote_desc, and reset_readchar().
Referenced by handle_detach(), and process_serial_event().
| int remote_connection_is_stdio | ( | void | ) |
Definition at line 137 of file remote-utils.c.
References remote_is_stdio.
Referenced by linux_ptrace_fun(), mywait(), read_prim(), remote_close(), and write_prim().
| void remote_open | ( | const char * | name | ) |
Definition at line 290 of file remote-utils.c.
References add_file_handler(), enable_async_notification(), errno, error(), handle_accept_event(), handle_serial_event(), listen_desc, name, perror_with_name(), remote_desc, S_ISCHR, S_ISFIFO, and STDIO_CONNECTION_NAME.
Referenced by captured_main().
| void remote_prepare | ( | const char * | name | ) |
Definition at line 223 of file remote-utils.c.
References error(), listen_desc, name, perror_with_name(), remote_is_stdio, STDIO_CONNECTION_NAME, and transport_is_reliable.
Referenced by captured_main().
| void write_enn | ( | char * | buf | ) |
Definition at line 1050 of file remote-utils.c.
Referenced by captured_main(), cmd_bigqtbuffer_size(), cmd_qtbuffer(), cmd_qtdp(), cmd_qtdpsrc(), cmd_qtenable_disable(), cmd_qtinit(), cmd_qtp(), cmd_qtstart(), handle_detach(), handle_fstat(), handle_general_set(), handle_monitor_command(), handle_query(), handle_qxfer(), handle_v_attach(), handle_v_cont(), handle_v_kill(), handle_v_requests(), handle_v_run(), install_tracepoint(), look_up_one_symbol(), process_serial_event(), and relocate_instruction().
| void write_ok | ( | char * | buf | ) |
Definition at line 1042 of file remote-utils.c.
Referenced by cmd_bigqtbuffer_circular(), cmd_bigqtbuffer_size(), cmd_qtdisconnected(), cmd_qtdp(), cmd_qtdpsrc(), cmd_qtdv(), cmd_qtenable_disable(), cmd_qtframe(), cmd_qtinit(), cmd_qtnotes(), cmd_qtro(), cmd_qtstart(), cmd_qtstop(), handle_btrace_conf_general_set(), handle_btrace_general_set(), handle_detach(), handle_general_set(), handle_query(), handle_v_attach(), handle_v_kill(), handle_v_requests(), install_tracepoint(), notif_write_event(), process_serial_event(), relocate_instruction(), and resume().
| char* write_ptid | ( | char * | buf, |
| ptid_t | ptid | ||
| ) |
Definition at line 486 of file remote-utils.c.
References multi_process, ptid_get_lwp(), and ptid_get_pid().
Referenced by handle_query(), handle_qxfer_threads_worker(), and prepare_resume_reply().
| int noack_mode |
Definition at line 119 of file remote-utils.c.
Referenced by captured_main(), getpkt(), handle_general_set(), and putpkt_binary_1().
| int remote_debug |
Definition at line 106 of file remote-utils.c.
| int transport_is_reliable |
Definition at line 121 of file remote-utils.c.
Referenced by handle_query(), and remote_prepare().
1.8.14