Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[GDB] Provide functions to manually enter GDB stub.
- Loading branch information
Showing
4 changed files
with
79 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 */ |