iPXE
|
Dummy GDB architecture specifics. More...
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | GDBMACH_SIZEOF_REGS ( GDBMACH_NREGS * sizeof ( gdbreg_t ) ) |
Typedefs | |
typedef unsigned long | gdbreg_t |
Enumerations | |
enum | { GDBMACH_NREGS } |
Functions | |
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... | |
Dummy GDB architecture specifics.
This file is included only if the architecture does not provide its own version of this file.
Definition in file gdbmach.h.
#define GDBMACH_SIZEOF_REGS ( GDBMACH_NREGS * sizeof ( gdbreg_t ) ) |
|
inlinestatic |
|
inlinestatic |
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.
References addr, bp, DBGC, dr, dr7, DR7_G, DR7_RWLEN_1, DR7_RWLEN_2, DR7_RWLEN_4, DR7_RWLEN_8, DR7_RWLEN_ACCESS, DR7_RWLEN_MASK, DR7_RWLEN_WRITE, ENOBUFS, ENOTSUP, GDBMACH_AWATCH, gdbmach_find(), gdbmach_update(), GDBMACH_WATCH, len, type, and virt_to_phys().
Referenced by gdbstub_breakpoint().
void gdbmach_init | ( | void | ) |
Initialise GDB.
Definition at line 241 of file gdbmach.c.
References gdbmach_vectors, and set_interrupt_vector().
Referenced by gdbstub_start().