GDBserver
|
#include "config.h"
#include "build-gnulib-gdbserver/config.h"
#include "libiberty.h"
#include "ansidecl.h"
#include "version.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <setjmp.h>
#include "pathmax.h"
#include "ptid.h"
#include "buffer.h"
#include "xml-utils.h"
#include "gdb_locale.h"
#include "regcache.h"
#include "gdb/signals.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 "common-utils.h"
#include "utils.h"
#include "gdb_assert.h"
Go to the source code of this file.
Defines | |
#define | PROG "gdbserver" |
#define | MAXBUFBYTES(N) (((N)-32)/2) |
#define | PBUFSIZ 16384 |
Typedefs | |
typedef unsigned char | gdb_byte |
typedef long long | CORE_ADDR |
typedef long long | LONGEST |
typedef unsigned long long | ULONGEST |
typedef int | gdb_fildes_t |
Functions | |
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 | debug_threads |
int | debug_hw_points |
int | pass_signals [] |
int | program_signals [] |
int | program_signals_p |
jmp_buf | toplevel |
int | disable_packet_vCont |
int | disable_packet_Tthread |
int | disable_packet_qC |
int | disable_packet_qfThreadInfo |
int | run_once |
int | multi_process |
int | non_stop |
int | disable_randomization |
#define MAXBUFBYTES | ( | N | ) | (((N)-32)/2) |
#define PBUFSIZ 16384 |
Definition at line 161 of file server.h.
Referenced by cmd_qtbuffer(), handle_query(), handle_qxfer(), hostio_reply_with_data(), init_target_desc(), main(), notif_push(), and write_qxfer_response().
#define PROG "gdbserver" |
Definition at line 79 of file server.h.
Referenced by ax_vdebug(), and trace_vdebug().
typedef int gdb_fildes_t |
int handle_serial_event | ( | int | err, |
gdb_client_data | client_data | ||
) |
Definition at line 3571 of file server.c.
References debug_threads, process_serial_event(), and set_desired_inferior().
Referenced by handle_accept_event(), process_remaining(), and remote_open().
int handle_target_event | ( | int | err, |
gdb_client_data | client_data | ||
) |
Definition at line 3590 of file server.c.
References current_inferior, 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_inferior(), 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 5852 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_init_signals(), linux_ptrace_init_warnings(), memset(), set_breakpoint_data(), set_target_ops(), sigchld_handler(), the_low_target, and TRACE.
Referenced by main().
void perror | ( | const char * | ) |
Definition at line 25 of file wincecompat.c.
References strwinerror().
Referenced by lynx_fetch_registers(), lynx_store_registers(), putpkt_binary_1(), and readchar().
char* strerror | ( | int | ) |
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().
Definition at line 46 of file server.c.
Referenced by linux_request_interrupt(), linux_wait_1(), and set_desired_inferior().
int debug_hw_points |
int debug_threads |
Definition at line 110 of file server.c.
Referenced by handle_query(), and main().
Definition at line 111 of file server.c.
Referenced by handle_query(), and main().
Definition at line 109 of file server.c.
Referenced by main(), and prepare_resume_reply().
Definition at line 108 of file server.c.
Referenced by handle_v_requests(), and main().
Definition at line 65 of file server.c.
Referenced by handle_general_set(), linux_create_inferior(), and main().
Definition at line 49 of file server.c.
Referenced by handle_query(), prepare_resume_reply(), and set_desired_inferior().
int multi_process |
Definition at line 60 of file server.c.
Referenced by handle_query(), handle_v_kill(), handle_v_requests(), main(), prepare_resume_reply(), process_serial_event(), and write_ptid().
int non_stop |
Definition at line 61 of file server.c.
Referenced by agent_run_command(), attach_inferior(), handle_general_set(), handle_status(), handle_v_attach(), handle_v_cont(), handle_v_run(), linux_attach(), linux_done_accessing_memory(), linux_prepare_to_access_memory(), linux_resume(), linux_wait_1(), linux_wait_for_event(), main(), myresume(), prepare_resume_reply(), process_serial_event(), and wait_for_sigstop().
int pass_signals[] |
Definition at line 76 of file server.c.
Referenced by handle_general_set(), and linux_wait_1().
int program_signals[] |
Definition at line 77 of file server.c.
Referenced by get_detach_signal(), and handle_general_set().
Definition at line 78 of file server.c.
Referenced by get_detach_signal(), and handle_general_set().
int run_once |
Definition at line 58 of file server.c.
Referenced by handle_accept_event(), and main().
int server_waiting |
Definition at line 51 of file server.c.
Referenced by handle_load_dll(), handle_output_debug_string(), mywait(), new_thread_notify(), spu_wait(), and win32_wait().