gdb/gdbserver/server.h - gdb
Data types defined
Macros defined
Source code
- #ifndef SERVER_H
- #define SERVER_H
- #include "common-defs.h"
- gdb_static_assert (sizeof (CORE_ADDR) >= sizeof (void *));
- #ifdef __MINGW32CE__
- #include "wincecompat.h"
- #endif
- #include "version.h"
- #if !HAVE_DECL_STRERROR
- #ifndef strerror
- extern char *strerror (int);
- #endif
- #endif
- #if !HAVE_DECL_PERROR
- #ifndef perror
- extern void perror (const char *);
- #endif
- #endif
- #if !HAVE_DECL_VASPRINTF
- extern int vasprintf(char **strp, const char *fmt, va_list ap);
- #endif
- #if !HAVE_DECL_VSNPRINTF
- int vsnprintf(char *str, size_t size, const char *format, va_list ap);
- #endif
- #ifdef IN_PROCESS_AGENT
- # define PROG "ipa"
- #else
- # define PROG "gdbserver"
- #endif
- #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"
- void initialize_low ();
- extern ptid_t cont_thread;
- extern ptid_t general_thread;
- extern int server_waiting;
- extern int pass_signals[];
- extern int program_signals[];
- extern int program_signals_p;
- extern int disable_packet_vCont;
- extern int disable_packet_Tthread;
- extern int disable_packet_qC;
- extern int disable_packet_qfThreadInfo;
- extern int run_once;
- extern int multi_process;
- extern int non_stop;
- extern int disable_randomization;
- #if USE_WIN32API
- #include <winsock2.h>
- typedef SOCKET gdb_fildes_t;
- #else
- typedef int gdb_fildes_t;
- #endif
- #include "event-loop.h"
- extern int handle_serial_event (int err, gdb_client_data client_data);
- extern int handle_target_event (int err, gdb_client_data client_data);
- #include "remote-utils.h"
- #include "utils.h"
- #include "debug.h"
- #define MAXBUFBYTES(N) (((N)-32)/2)
- #define PBUFSIZ 16384
- #endif