mirror of
https://github.com/ipxe/ipxe
synced 2025-12-24 15:23:42 +03:00
[GDB] Provide functions to manually enter GDB stub.
This commit is contained in:
committed by
Michael Brown
parent
7eb555a8ae
commit
e9e1da131a
19
src/include/gpxe/gdbserial.h
Normal file
19
src/include/gpxe/gdbserial.h
Normal file
@@ -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 */
|
||||
22
src/include/gpxe/gdbudp.h
Normal file
22
src/include/gpxe/gdbudp.h
Normal file
@@ -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 */
|
||||
Reference in New Issue
Block a user