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/config.h | |
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/config.h')
-rw-r--r-- | src/config.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config.h b/src/config.h index e695b015..f43da040 100644 --- a/src/config.h +++ b/src/config.h @@ -163,7 +163,9 @@ #undef BUILD_ID /* Include a custom build ID string, * e.g "test-foo" */ #undef NULL_TRAP /* Attempt to catch NULL function calls */ -#undef GDBSTUB /* Remote GDB debugging */ +#undef GDBSERIAL /* Remote GDB debugging over serial */ +#undef GDBUDP /* Remote GDB debugging over UDP + * (both may be set) */ /* @END general.h */ |