|
iPXE
|
GDB architecture specifics. More...
#include <stdint.h>Go to the source code of this file.
Typedefs | |
| typedef unsigned long | gdbreg_t |
Enumerations | |
| enum | { GDBMACH_EAX , GDBMACH_ECX , GDBMACH_EDX , GDBMACH_EBX , GDBMACH_ESP , GDBMACH_EBP , GDBMACH_ESI , GDBMACH_EDI , GDBMACH_EIP , GDBMACH_EFLAGS , GDBMACH_CS , GDBMACH_SS , GDBMACH_DS , GDBMACH_ES , GDBMACH_FS , GDBMACH_GS , GDBMACH_NREGS , GDBMACH_SIZEOF_REGS = GDBMACH_NREGS * sizeof ( gdbreg_t ) } |
| enum | { GDBMACH_BPMEM , GDBMACH_BPHW , GDBMACH_WATCH , GDBMACH_RWATCH , GDBMACH_AWATCH } |
Functions | |
| FILE_SECBOOT (FORBIDDEN) | |
| void | gdbmach_sigfpe (void) |
| void | gdbmach_sigtrap (void) |
| void | gdbmach_sigstkflt (void) |
| void | gdbmach_sigill (void) |
| static void | gdbmach_set_pc (gdbreg_t *regs, gdbreg_t pc) |
| static void | gdbmach_set_single_step (gdbreg_t *regs, int step) |
| static void | gdbmach_breakpoint (void) |
| int | gdbmach_set_breakpoint (int type, unsigned long addr, size_t len, int enable) |
| Set hardware breakpoint. | |
| void | gdbmach_init (void) |
| Initialise GDB. | |
GDB architecture specifics.
This file declares functions for manipulating the machine state and debugging context.
Definition in file gdbmach.h.
| anonymous enum |
Definition at line 21 of file gdbmach.h.
| anonymous enum |
| Enumerator | |
|---|---|
| GDBMACH_BPMEM | |
| GDBMACH_BPHW | |
| GDBMACH_WATCH | |
| GDBMACH_RWATCH | |
| GDBMACH_AWATCH | |
Definition at line 43 of file gdbmach.h.
| FILE_SECBOOT | ( | FORBIDDEN | ) |
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 57 of file gdbmach.h.
References GDBMACH_EIP, and regs.
Referenced by gdbstub_continue().
|
inlinestatic |
Definition at line 61 of file gdbmach.h.
References GDBMACH_EFLAGS, regs, and step().
Referenced by gdbstub_continue().
|
inlinestatic |
Definition at line 66 of file gdbmach.h.
References __asm__(), and __volatile__().
Referenced by gdbstub_start().
|
extern |
Set hardware breakpoint.
| type | GDB breakpoint type |
| addr | Virtual address |
| len | Length |
| enable | Enable (not disable) breakpoint |
| rc | Return status code |
Definition at line 134 of file gdbmach.c.
|
extern |
Initialise GDB.
Definition at line 242 of file gdbmach.c.