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/tests | |
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/tests')
-rwxr-xr-x | src/tests/gdbstub_test.gdb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/tests/gdbstub_test.gdb b/src/tests/gdbstub_test.gdb index c0c59644..c86d4f2a 100755 --- a/src/tests/gdbstub_test.gdb +++ b/src/tests/gdbstub_test.gdb @@ -3,16 +3,16 @@ # Run: # make bin/gpxe.hd.tmp # make -# tests/gdbstub_test.gdb +# gdb +# (gdb) target remote :TCPPORT +# OR +# (gdb) target remote udp:IP:UDPPORT +# (gdb) source tests/gdbstub_test.gdb define gpxe_load_symbols file bin/gpxe.hd.tmp end -define gpxe_connect - target remote localhost:4444 -end - define gpxe_assert if $arg0 != $arg1 echo FAIL $arg2\n @@ -78,7 +78,6 @@ define gpxe_test_step end gpxe_load_symbols -gpxe_connect gpxe_start_tests gpxe_test_regs_read gpxe_test_regs_write |