GDBserver
|
#include "common-defs.h"
#include "version.h"
#include "buffer.h"
#include "xml-utils.h"
#include "regcache.h"
#include "gdb_signals.h"
#include "target.h"
#include "mem-break.h"
#include "gdbthread.h"
#include "inferiors.h"
#include "event-loop.h"
#include "remote-utils.h"
#include "utils.h"
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | PROG "gdbserver" |
#define | MAXBUFBYTES(N) (((N)-32)/2) |
#define | PBUFSIZ 16384 |
Typedefs | |
typedef int | gdb_fildes_t |
Functions | |
gdb_static_assert (sizeof(CORE_ADDR) >=sizeof(void *)) | |
char * | strerror (int) |
void | perror (const char *) |
int | vasprintf (char **strp, const char *fmt, va_list ap) |
int | vsnprintf (char *str, size_t size, const char *format, va_list ap) |
void | initialize_low () |
int | handle_serial_event (int err, gdb_client_data client_data) |
int | handle_target_event (int err, gdb_client_data client_data) |
Variables | |
ptid_t | cont_thread |
ptid_t | general_thread |
int | server_waiting |
int | pass_signals [] |
int | program_signals [] |
int | program_signals_p |
int | disable_packet_vCont |
int | disable_packet_Tthread |
int | disable_packet_qC |
int | disable_packet_qfThreadInfo |
int | run_once |
int | multi_process |
int | report_fork_events |
int | report_vfork_events |
int | non_stop |
int | swbreak_feature |
int | hwbreak_feature |
int | disable_randomization |
#define PBUFSIZ 16384 |
Definition at line 129 of file server.h.
Referenced by captured_main(), cmd_qtbuffer(), handle_pread(), handle_query(), handle_qxfer(), hostio_reply_with_data(), init_target_desc(), notif_push(), and write_qxfer_response().
#define PROG "gdbserver" |
Definition at line 54 of file server.h.
Referenced by ax_vdebug().
typedef int gdb_fildes_t |
gdb_static_assert | ( | sizeof(CORE_ADDR) >=sizeof(void *) | ) |
int handle_serial_event | ( | int | err, |
gdb_client_data | client_data | ||
) |
Definition at line 4175 of file server.c.
References debug_printf(), debug_threads, process_serial_event(), and set_desired_thread().
Referenced by handle_accept_event(), process_remaining(), and remote_open().
int handle_target_event | ( | int | err, |
gdb_client_data | client_data | ||
) |
Definition at line 4194 of file server.c.
References current_thread, debug_printf(), debug_threads, find_process_pid(), gdb_connected(), process_info::gdb_detached, gdb_signal_to_host(), thread_resume::kind, last_ptid, thread_info::last_resume_kind, thread_info::last_status, last_status, mark_breakpoints_out(), minus_one_ptid, mourn_inferior, mywait(), notif_push(), vstop_notif::ptid, ptid_get_pid(), target_ops::resume, set_desired_thread(), thread_resume::sig, vstop_notif::status, target_pid_to_str(), target_running(), the_target, thread_resume::thread, and xmalloc().
Referenced by linux_async().
void initialize_low | ( | ) |
Definition at line 6935 of file linux-low.c.
References linux_target_ops::arch_setup, linux_target_ops::breakpoint, linux_target_ops::breakpoint_len, init_registers_spu(), initialize_low_arch(), linux_check_ptrace_features(), linux_init_signals(), linux_ptrace_init_warnings(), set_breakpoint_data(), set_target_ops(), sigchld_handler(), the_low_target, and TRACE.
Referenced by captured_main().
void perror | ( | const char * | ) |
Definition at line 24 of file wincecompat.c.
References strwinerror().
Referenced by lynx_fetch_registers(), lynx_store_registers(), putpkt_binary_1(), and readchar().
char* strerror | ( | int | ) |
Referenced by attach_proc_task_lwp_callback(), delete_fast_tracepoint_jump(), gdb_connect_sync_socket(), initialize_fast_tracepoint_trampoline_buffer(), insert_memory_breakpoint(), linux_create_inferior(), linux_detach_one_lwp(), linux_kill_one_lwp(), linux_wait_for_event_filtered(), lynx_attach(), lynx_create_inferior(), nto_resume(), nto_xfer_memory(), perror_with_name(), reinsert_fast_tracepoint_jumps_at(), remove_memory_breakpoint(), safe_strerror(), set_fast_tracepoint_jump(), spu_attach(), spu_create_inferior(), and uninsert_fast_tracepoint_jumps_at().
int vasprintf | ( | char ** | strp, |
const char * | fmt, | ||
va_list | ap | ||
) |
Referenced by xstrvprintf().
int vsnprintf | ( | char * | str, |
size_t | size, | ||
const char * | format, | ||
va_list | ap | ||
) |
Referenced by xsnprintf().
ptid_t cont_thread |
Definition at line 45 of file server.c.
Referenced by set_desired_thread().
int disable_packet_qC |
Definition at line 104 of file server.c.
Referenced by captured_main(), and handle_query().
int disable_packet_qfThreadInfo |
Definition at line 105 of file server.c.
Referenced by captured_main(), and handle_query().
int disable_packet_Tthread |
Definition at line 103 of file server.c.
Referenced by captured_main(), and prepare_resume_reply().
int disable_packet_vCont |
Definition at line 102 of file server.c.
Referenced by captured_main(), and handle_v_requests().
int disable_randomization |
Definition at line 68 of file server.c.
Referenced by captured_main(), handle_general_set(), and linux_create_inferior().
ptid_t general_thread |
Definition at line 48 of file server.c.
Referenced by handle_query(), prepare_resume_reply(), and set_desired_thread().
int hwbreak_feature |
Definition at line 64 of file server.c.
Referenced by captured_main(), handle_query(), and prepare_resume_reply().
int multi_process |
Definition at line 59 of file server.c.
Referenced by captured_main(), handle_query(), handle_v_kill(), handle_v_requests(), prepare_resume_reply(), process_serial_event(), and write_ptid().
int non_stop |
Definition at line 62 of file server.c.
Referenced by attach_inferior(), captured_main(), handle_general_set(), handle_status(), handle_v_attach(), handle_v_run(), linux_attach(), linux_done_accessing_memory(), linux_prepare_to_access_memory(), linux_resume(), linux_wait_1(), prepare_resume_reply(), process_serial_event(), resume(), select_event_lwp(), target_stop_and_wait(), and wait_for_sigstop().
int pass_signals[] |
Definition at line 72 of file server.c.
Referenced by handle_general_set(), and linux_wait_1().
int program_signals[] |
Definition at line 73 of file server.c.
Referenced by get_detach_signal(), and handle_general_set().
int program_signals_p |
Definition at line 74 of file server.c.
Referenced by get_detach_signal(), and handle_general_set().
int report_fork_events |
Definition at line 60 of file server.c.
Referenced by captured_main(), handle_query(), linux_low_ptrace_options(), and prepare_resume_reply().
int report_vfork_events |
Definition at line 61 of file server.c.
Referenced by captured_main(), handle_query(), linux_low_ptrace_options(), and prepare_resume_reply().
int run_once |
Definition at line 57 of file server.c.
Referenced by captured_main(), and handle_accept_event().
int server_waiting |
Definition at line 50 of file server.c.
Referenced by handle_output_debug_string(), mywait(), new_thread_notify(), and spu_wait().
int swbreak_feature |
Definition at line 63 of file server.c.
Referenced by captured_main(), handle_query(), linux_wait_1(), and prepare_resume_reply().