|
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 | |
| 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. More... | |
| void | gdbmach_init (void) |
| Initialise GDB. More... | |
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 19 of file gdbmach.h.
| anonymous enum |
| Enumerator | |
|---|---|
| GDBMACH_BPMEM | |
| GDBMACH_BPHW | |
| GDBMACH_WATCH | |
| GDBMACH_RWATCH | |
| GDBMACH_AWATCH | |
Definition at line 41 of file gdbmach.h.
| void gdbmach_sigfpe | ( | void | ) |
| void gdbmach_sigtrap | ( | void | ) |
| void gdbmach_sigstkflt | ( | void | ) |
| void gdbmach_sigill | ( | void | ) |
Definition at line 55 of file gdbmach.h.
References GDBMACH_EIP, and regs.
Referenced by gdbstub_continue().
|
inlinestatic |
Definition at line 59 of file gdbmach.h.
References GDBMACH_EFLAGS, regs, and step().
Referenced by gdbstub_continue().
|
inlinestatic |
Definition at line 64 of file gdbmach.h.
References __asm__(), and __volatile__().
Referenced by gdbstub_start().
| int gdbmach_set_breakpoint | ( | int | type, |
| unsigned long | addr, | ||
| size_t | len, | ||
| int | enable | ||
| ) |
Set hardware breakpoint.
| type | GDB breakpoint type |
| addr | Virtual address |
| len | Length |
| enable | Enable (not disable) breakpoint |
| rc | Return status code |
Definition at line 133 of file gdbmach.c.
| void gdbmach_init | ( | void | ) |
Initialise GDB.
Definition at line 241 of file gdbmach.c.
1.8.15