diff options
| author | Stefan Hajnoczi | 2008-06-16 15:42:22 +0200 |
|---|---|---|
| committer | Michael Brown | 2008-06-30 20:19:48 +0200 |
| commit | e9e1da131a6fe49886e0e6e0a5adeb533d79791b (patch) | |
| tree | 70de8001c0346da7b36efeeb6b7f24e8518b2c5d /src/include | |
| parent | [GDB] Obey flow control when GDB connects. (diff) | |
| download | ipxe-e9e1da131a6fe49886e0e6e0a5adeb533d79791b.tar.gz ipxe-e9e1da131a6fe49886e0e6e0a5adeb533d79791b.tar.xz ipxe-e9e1da131a6fe49886e0e6e0a5adeb533d79791b.zip | |
[GDB] Provide functions to manually enter GDB stub.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/gpxe/gdbserial.h | 19 | ||||
| -rw-r--r-- | src/include/gpxe/gdbudp.h | 22 |
2 files changed, 41 insertions, 0 deletions
diff --git a/src/include/gpxe/gdbserial.h b/src/include/gpxe/gdbserial.h new file mode 100644 index 000000000..1863e9076 --- /dev/null +++ b/src/include/gpxe/gdbserial.h @@ -0,0 +1,19 @@ +#ifndef _GPXE_GDBSERIAL_H +#define _GPXE_GDBSERIAL_H + +/** @file + * + * GDB remote debugging over serial + * + */ + +struct gdb_transport; + +/** + * Set up the serial transport + * + * @ret transport suitable for starting the GDB stub or NULL on error + */ +struct gdb_transport *gdbserial_configure ( void ); + +#endif /* _GPXE_GDBSERIAL_H */ diff --git a/src/include/gpxe/gdbudp.h b/src/include/gpxe/gdbudp.h new file mode 100644 index 000000000..1a990933a --- /dev/null +++ b/src/include/gpxe/gdbudp.h @@ -0,0 +1,22 @@ +#ifndef _GPXE_GDBUDP_H +#define _GPXE_GDBUDP_H + +/** @file + * + * GDB remote debugging over UDP + * + */ + +struct sockaddr_in; +struct gdb_transport; + +/** + * Set up the UDP transport with network address + * + * @name network device name + * @addr IP address and UDP listen port, may be NULL and fields may be zero + * @ret transport suitable for starting the GDB stub or NULL on error + */ +struct gdb_transport *gdbudp_configure ( const char *name, struct sockaddr_in *addr ); + +#endif /* _GPXE_GDBUDP_H */ |
