diff options
author | Stefan Hajnoczi <stefanha@gmail.com> | 2008-06-11 12:12:46 +0100 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2008-06-30 19:19:48 +0100 |
commit | 6e670b5f38903109a0369f81932cca16f8a6eddf (patch) | |
tree | 8dfad249c81406265725c7216e3d4098621c7981 /src/tests | |
parent | 9ec3ff95f04d02d1cc6288608477a6c593ffe836 (diff) | |
download | ipxe-6e670b5f38903109a0369f81932cca16f8a6eddf.zip ipxe-6e670b5f38903109a0369f81932cca16f8a6eddf.tar.gz ipxe-6e670b5f38903109a0369f81932cca16f8a6eddf.tar.bz2 |
[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 c0c5964..c86d4f2 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 |