[GDB] Remote debugging over UDP
authorStefan Hajnoczi <stefanha@gmail.com>
Wed, 11 Jun 2008 11:12:46 +0000 (12:12 +0100)
committerMichael Brown <mcb30@etherboot.org>
Mon, 30 Jun 2008 18:19:48 +0000 (19:19 +0100)
commit6e670b5f38903109a0369f81932cca16f8a6eddf
tree8dfad249c81406265725c7216e3d4098621c7981
parent9ec3ff95f04d02d1cc6288608477a6c593ffe836
[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.
src/config.h
src/core/config.c
src/core/gdbserial.c [new file with mode: 0644]
src/core/gdbstub.c
src/core/gdbudp.c [new file with mode: 0644]
src/hci/commands/gdbstub_cmd.c [new file with mode: 0644]
src/include/gpxe/gdbstub.h [new file with mode: 0644]
src/tests/gdbstub_test.gdb