#define GDB_SIGTRAP 5 // Trace Trap (Breakpoint and SingleStep)\r
#define GDB_SIGEMT 7 // Emulator Trap\r
#define GDB_SIGFPE 8 // Floating point exception\r
#define GDB_SIGTRAP 5 // Trace Trap (Breakpoint and SingleStep)\r
#define GDB_SIGEMT 7 // Emulator Trap\r
#define GDB_SIGFPE 8 // Floating point exception\r
// Includes all general GDB Unix like error values\r
//\r
#define GDB_EBADMEMADDRBUFSIZE 11 // the buffer that stores memory Address to be read from/written to is not the right size\r
// Includes all general GDB Unix like error values\r
//\r
#define GDB_EBADMEMADDRBUFSIZE 11 // the buffer that stores memory Address to be read from/written to is not the right size\r
#define GDB_EBADMEMLENGTH 13 // Length, the given number of bytes to read or write, is not the right size\r
#define GDB_EBADMEMLENGTH 13 // Length, the given number of bytes to read or write, is not the right size\r
#define GDB_EBADMEMDATASIZE 15 // the memory data, 'XX..', is too short or too long\r
#define GDB_EBADBUFSIZE 21 // the buffer created is not the correct size\r
#define GDB_EINVALIDARG 31 // argument is invalid\r
#define GDB_EBADMEMDATASIZE 15 // the memory data, 'XX..', is too short or too long\r
#define GDB_EBADBUFSIZE 21 // the buffer created is not the correct size\r
#define GDB_EINVALIDARG 31 // argument is invalid\r
UINT32 B1:1; // Breakpoint condition detected\r
UINT32 B2:1; // Breakpoint condition detected\r
UINT32 B3:1; // Breakpoint condition detected\r
UINT32 B1:1; // Breakpoint condition detected\r
UINT32 B2:1; // Breakpoint condition detected\r
UINT32 B3:1; // Breakpoint condition detected\r
UINT32 BD:1; // Debug register access detected\r
UINT32 BS:1; // Single step\r
UINT32 BT:1; // Task switch\r
UINT32 BD:1; // Debug register access detected\r
UINT32 BS:1; // Single step\r
UINT32 BT:1; // Task switch\r
@param SystemContext Register content at time of the exception\r
@param GdbExceptionType GDB exception type\r
**/\r
@param SystemContext Register content at time of the exception\r
@param GdbExceptionType GDB exception type\r
**/\r
@param EFIExceptionType EFI Exception that is being processed\r
@retval UINTN that corresponds to EFIExceptionType's GDB exception type number\r
**/\r
UINT8\r
@param EFIExceptionType EFI Exception that is being processed\r
@retval UINTN that corresponds to EFIExceptionType's GDB exception type number\r
**/\r
UINT8\r
@param Char - the hex character to be converted into UINTN\r
@retval a INTN, from 0 to 15, that corressponds to Char\r
-1 if Char is not a hex character\r
@param Char - the hex character to be converted into UINTN\r
@retval a INTN, from 0 to 15, that corressponds to Char\r
-1 if Char is not a hex character\r
Send an error with the given error number after converting to hex.\r
The error number is put into the buffer in hex. '255' is the biggest errno we can send.\r
ex: 162 will be sent as A2.\r
Send an error with the given error number after converting to hex.\r
The error number is put into the buffer in hex. '255' is the biggest errno we can send.\r
ex: 162 will be sent as A2.\r
@param SystemContext Register content at time of the exception\r
@param InBuffer This is the input buffer received from gdb server\r
**/\r
@param SystemContext Register content at time of the exception\r
@param InBuffer This is the input buffer received from gdb server\r
**/\r
- Find the Length of the area to read and the start addres. Finally, pass them to \r
- another function, TransferFromMemToOutBufAndSend, that will read from that memory space and \r
+ Find the Length of the area to read and the start addres. Finally, pass them to\r
+ another function, TransferFromMemToOutBufAndSend, that will read from that memory space and\r
@param SystemContext Register content at time of the exception\r
@param PacketData Pointer to Payload data for the packet\r
**/\r
@param SystemContext Register content at time of the exception\r
@param PacketData Pointer to Payload data for the packet\r
**/\r
@param SystemContext Register content at time of the exception\r
**/\r
VOID\r
AddSingleStep (\r
IN EFI_SYSTEM_CONTEXT SystemContext\r
);\r
@param SystemContext Register content at time of the exception\r
**/\r
VOID\r
AddSingleStep (\r
IN EFI_SYSTEM_CONTEXT SystemContext\r
);\r
@param SystemContext Register content at time of the exception\r
**/\r
VOID\r
RemoveSingleStep (\r
IN EFI_SYSTEM_CONTEXT SystemContext\r
);\r
@param SystemContext Register content at time of the exception\r
**/\r
VOID\r
RemoveSingleStep (\r
IN EFI_SYSTEM_CONTEXT SystemContext\r
);\r
/**\r
Exception Hanldler for GDB. It will be called for all exceptions\r
registered via the gExceptionType[] array.\r
/**\r
Exception Hanldler for GDB. It will be called for all exceptions\r
registered via the gExceptionType[] array.\r
-GdbExceptionHandler ( \r
- IN EFI_EXCEPTION_TYPE ExceptionType, \r
- IN OUT EFI_SYSTEM_CONTEXT SystemContext \r
+GdbExceptionHandler (\r
+ IN EFI_EXCEPTION_TYPE ExceptionType,\r
+ IN OUT EFI_SYSTEM_CONTEXT SystemContext\r
(In other words, if received packet is '$12345$12345$123456#checksum', only '$123456#checksum' will be processed.)\r
(In other words, if received packet is '$12345$12345$123456#checksum', only '$123456#checksum' will be processed.)\r
the end of a file. On error -1 is returned. If count is zero, GdbRead returns zero.\r
\r
@param FileDescriptor Device to talk to.\r
@param Buffer Buffer to hold Count bytes that were read\r
the end of a file. On error -1 is returned. If count is zero, GdbRead returns zero.\r
\r
@param FileDescriptor Device to talk to.\r
@param Buffer Buffer to hold Count bytes that were read\r
- Write data to a FileDescriptor. On success number of bytes written is returned. Zero indicates \r
- nothing was written. On error -1 is returned. \r
+ Write data to a FileDescriptor. On success number of bytes written is returned. Zero indicates\r
+ nothing was written. On error -1 is returned.\r
\r
@param FileDescriptor Device to talk to.\r
@param Buffer Buffer to hold Count bytes that are to be written\r
\r
@param FileDescriptor Device to talk to.\r
@param Buffer Buffer to hold Count bytes that are to be written\r
FindPointerToRegister (\r
IN EFI_SYSTEM_CONTEXT SystemContext,\r
FindPointerToRegister (\r
IN EFI_SYSTEM_CONTEXT SystemContext,\r
UINTN\r
GetBreakpointDataAddress (\r
IN EFI_SYSTEM_CONTEXT SystemContext,\r
UINTN\r
GetBreakpointDataAddress (\r
IN EFI_SYSTEM_CONTEXT SystemContext,\r
- IN EFI_EXCEPTION_TYPE ExceptionType, \r
- IN OUT EFI_SYSTEM_CONTEXT SystemContext \r
+ IN EFI_EXCEPTION_TYPE ExceptionType,\r
+ IN OUT EFI_SYSTEM_CONTEXT SystemContext\r