rizin/libr/debug/p/libgdbwrap/include/gdbwrapper-internals.h
pancake 3bc0212ee6 * Initial import of the 'configure-plugins' script
- accepts --static and --shared to setup which plugins
    you want to build statically in the library or dynamically
  - normalize .mk and plugin file names to adopt a single standard
  - WARNING: huge commit
* Added 'mk/sloc.mk' with 'sloc' target to count
  lines with sloccount everywhere (yeah!)

--HG--
rename : libr/asm/p/x86bea.mk => libr/asm/p/x86_bea.mk
rename : libr/asm/p/x86nasm.mk => libr/asm/p/x86_nasm.mk
rename : libr/asm/p/x86olly.mk => libr/asm/p/x86_olly.mk
rename : libr/config.h => libr/config.h.head
rename : libr/config.mk => libr/config.mk.head
rename : libr/debug/p/dbg_gdb.c => libr/debug/p/debug_gdb.c
rename : libr/debug/p/dbg_ptrace.c => libr/debug/p/debug_ptrace.c
rename : libr/debug/p/dbg_libgdbwrap/Makefile => libr/debug/p/libgdbwrap/Makefile
rename : libr/debug/p/dbg_libgdbwrap/README => libr/debug/p/libgdbwrap/README
rename : libr/debug/p/dbg_libgdbwrap/client.c => libr/debug/p/libgdbwrap/client.c
rename : libr/debug/p/dbg_libgdbwrap/gdbwrapper.c => libr/debug/p/libgdbwrap/gdbwrapper.c
rename : libr/debug/p/dbg_libgdbwrap/include/gdbwrapper-internals.h => libr/debug/p/libgdbwrap/include/gdbwrapper-internals.h
rename : libr/debug/p/dbg_libgdbwrap/include/gdbwrapper-stddef.h => libr/debug/p/libgdbwrap/include/gdbwrapper-stddef.h
rename : libr/debug/p/dbg_libgdbwrap/include/gdbwrapper.h => libr/debug/p/libgdbwrap/include/gdbwrapper.h
rename : libr/debug/p/dbg_libgdbwrap/include/libaspect.h => libr/debug/p/libgdbwrap/include/libaspect.h
rename : libr/debug/p/dbg_libgdbwrap/include/libe2dbg.h => libr/debug/p/libgdbwrap/include/libe2dbg.h
rename : libr/debug/p/dbg_libgdbwrap/include/revm.h => libr/debug/p/libgdbwrap/include/revm.h
rename : libr/debug/p/dbg_libgdbwrap/interface.c => libr/debug/p/libgdbwrap/interface.c
rename : libr/io/p/dbg.mk => libr/io/p/debug.mk
rename : libr/io/p/io_dbg.c => libr/io/p/io_debug.c
2010-01-13 23:42:49 +01:00

67 lines
2.5 KiB
C

/* This file is for the gdb wrapper internals. It is not meant to be
included. */
#define GDBWRAP_PACKET_NO_BEGIN(_tocmp, _ptr) \
assert(_tocmp); \
_ptr = (strstr(_tocmp, GDBWRAP_BEGIN_PACKET) + 1)
#define __DEBUG_GDBWRAP__ FALSE
#define MSG_BUF 80
#if __DEBUG_GDBWRAP__
#define DEBUGMSG(_command) \
do \
{ \
_command; \
} while(0)
#else
#define DEBUGMSG(_command)
#endif
#define CONSTSTRDEC(_name, _value) const char * const _name = _value
#define CONSTCHRDEC(_name, _value) const char _name = _value
#define CTRL_C 0x3
CONSTSTRDEC(GDBWRAP_BEGIN_PACKET, "$");
CONSTSTRDEC(GDBWRAP_END_PACKET, "#");
CONSTSTRDEC(GDBWRAP_QSUPPORTED, "qSupported");
CONSTSTRDEC(GDBWRAP_DISCONNECT, "k");
CONSTSTRDEC(GDBWRAP_CONTINUEWITH, "vCont");
CONSTSTRDEC(GDBWRAP_CONTINUE, "c"); //"vCont;c");
CONSTSTRDEC(GDBWRAP_SIGNAL, "C");
CONSTSTRDEC(GDBWRAP_GENPURPREG, "g");
CONSTSTRDEC(GDBWRAP_WGENPURPREG, "G");
CONSTSTRDEC(GDBWRAP_MEMCONTENT, "m");
CONSTSTRDEC(GDBWRAP_MEMWRITE, "X");
CONSTSTRDEC(GDBWRAP_MEMWRITE2, "M");
CONSTSTRDEC(GDBWRAP_INSERTBP, "Z0");
CONSTSTRDEC(GDBWRAP_REMOVEBP, "z0");
CONSTSTRDEC(GDBWRAP_STEPI, "s");
CONSTSTRDEC(GDBWRAP_WRITEREG, "P");
CONSTSTRDEC(GDBWRAP_ERROR, "E");
CONSTSTRDEC(GDBWRAP_COR_CHECKSUM, "+");
CONSTSTRDEC(GDBWRAP_WHY_HALTED, "?");
CONSTSTRDEC(GDBWRAP_START_ENCOD, "*");
CONSTSTRDEC(GDBWRAP_SEP_COLON, ":");
CONSTSTRDEC(GDBWRAP_SEP_SEMICOLON, ";");
CONSTSTRDEC(GDBWRAP_SEP_COMMA, ",");
CONSTSTRDEC(GDBWRAP_RCMD, "qRcmd");
CONSTSTRDEC(GDBWRAP_PACKETSIZE, "PacketSize=");
CONSTSTRDEC(GDBWRAP_REPLAY_OK, "OK");
CONSTSTRDEC(GDBWRAP_NO_SPACE, "nospace");
CONSTSTRDEC(GDBWRAP_NO_TABLE, "notable");
CONSTSTRDEC(GDBWRAP_DEAD, "dead");
CONSTSTRDEC(GDBWRAP_MEMORYMAP_READ, "qXfer:memory-map:read");
CONSTCHRDEC(GDBWRAP_NULL_CHAR, '\0');
CONSTCHRDEC(GDBWRAP_REPLAY_ERROR, 'E');
CONSTCHRDEC(GDBWRAP_SIGNAL_RECV, 'T');
CONSTCHRDEC(GDBWRAP_SIGNAL_RECV2, 'S');
CONSTCHRDEC(GDBWRAP_EXIT_W_STATUS, 'W');
CONSTCHRDEC(GDBWRAP_EXIT_W_SIGNAL, 'X');
CONSTCHRDEC(GDBWRAP_END_PACKETC, '#');
CONSTCHRDEC(GDBWRAP_START_ENCODC, '*');
CONSTCHRDEC(GDBWRAP_COR_CHECKSUMC, '+');
CONSTCHRDEC(GDBWRAP_BAD_CHECKSUM, '-');
extern int errno;