iPXE
|
GDB remote debugging. More...
Go to the source code of this file.
Data Structures | |
struct | gdb_transport |
A transport mechanism for the GDB protocol. More... | |
Macros | |
#define | GDB_TRANSPORTS __table ( struct gdb_transport, "gdb_transports" ) |
#define | __gdb_transport __table_entry ( GDB_TRANSPORTS, 01 ) |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
struct gdb_transport * | find_gdb_transport (const char *name) |
Look up GDB transport by name. More... | |
void | gdbstub_start (struct gdb_transport *trans) |
Break into the debugger using the given transport. More... | |
void | gdbstub_handler (int signo, gdbreg_t *regs) |
Interrupt handler. More... | |
GDB remote debugging.
Definition in file gdbstub.h.
#define GDB_TRANSPORTS __table ( struct gdb_transport, "gdb_transports" ) |
struct gdb_transport udp_gdb_transport __gdb_transport __table_entry ( GDB_TRANSPORTS, 01 ) |
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
struct gdb_transport* find_gdb_transport | ( | const char * | name | ) |
Look up GDB transport by name.
name | Name of transport |
GDB | transport or NULL |
Definition at line 391 of file gdbstub.c.
References for_each_table_entry, GDB_TRANSPORTS, gdb_transport::name, name, NULL, and strcmp().
Referenced by parse_gdb_transport().
void gdbstub_start | ( | struct gdb_transport * | trans | ) |
Break into the debugger using the given transport.
trans | GDB transport |
Definition at line 402 of file gdbstub.c.
References gdbstub::buf, gdbmach_breakpoint(), gdbmach_init(), gdbstub::payload, stub, and gdbstub::trans.
Referenced by gdbstub_exec().
void gdbstub_handler | ( | int | signo, |
gdbreg_t * | regs | ||
) |
Interrupt handler.
@signo POSIX signal number @regs CPU register snapshot
Definition at line 371 of file gdbstub.c.
References gdbstub::exit_handler, gdbstub_parse(), gdbstub_report_signal(), len, gdb_transport::recv, gdbstub::regs, regs, gdbstub::signo, SIZEOF_PAYLOAD, stub, and gdbstub::trans.
Referenced by gdbmach_handler().