diff options
author | Stefan Hajnoczi | 2008-06-11 13:12:46 +0200 |
---|---|---|
committer | Michael Brown | 2008-06-30 20:19:48 +0200 |
commit | 6e670b5f38903109a0369f81932cca16f8a6eddf (patch) | |
tree | 8dfad249c81406265725c7216e3d4098621c7981 /src/core/config.c | |
parent | [GDB] Atomic read/write for device memory (diff) | |
download | ipxe-6e670b5f38903109a0369f81932cca16f8a6eddf.tar.gz ipxe-6e670b5f38903109a0369f81932cca16f8a6eddf.tar.xz ipxe-6e670b5f38903109a0369f81932cca16f8a6eddf.zip |
[GDB] Remote debugging over UDP
This commit implements GDB over UDP. Using UDP is more complex than
serial and has required some restructuring.
The GDB stub is now built using one or both of GDBSERIAL and GDBUDP
config.h options.
To enter the debugger, execute the gPXE shell command:
gdbstub <transport> [<options>...]
Where <transport> is "serial" or "udp". For "udp", the name of a
configured network device is required:
gdbstub udp net0
The GDB stub listens on UDP port 43770 by default.
Diffstat (limited to 'src/core/config.c')
-rw-r--r-- | src/core/config.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/config.c b/src/core/config.c index 018f084a..42026827 100644 --- a/src/core/config.c +++ b/src/core/config.c @@ -195,6 +195,13 @@ REQUIRE_OBJECT ( sanboot_cmd ); #ifdef NULL_TRAP REQUIRE_OBJECT ( nulltrap ); #endif -#ifdef GDBSTUB +#ifdef GDBSERIAL REQUIRE_OBJECT ( gdbidt ); +REQUIRE_OBJECT ( gdbserial ); +REQUIRE_OBJECT ( gdbstub_cmd ); +#endif +#ifdef GDBUDP +REQUIRE_OBJECT ( gdbidt ); +REQUIRE_OBJECT ( gdbudp ); +REQUIRE_OBJECT ( gdbstub_cmd ); #endif |