iPXE
gdbmach.h
Go to the documentation of this file.
1#ifndef _BITS_GDBMACH_H
2#define _BITS_GDBMACH_H
3
4/** @file
5 *
6 * Dummy GDB architecture specifics
7 *
8 * This file is included only if the architecture does not provide its
9 * own version of this file.
10 *
11 */
12
13FILE_SECBOOT ( FORBIDDEN );
14
15#include <stdint.h>
16
17typedef unsigned long gdbreg_t;
18
19/* Register snapshot */
20enum {
21 /* Not yet implemented */
23};
24
25#define GDBMACH_SIZEOF_REGS ( GDBMACH_NREGS * sizeof ( gdbreg_t ) )
26
27static inline void gdbmach_set_pc ( gdbreg_t *regs, gdbreg_t pc ) {
28 /* Not yet implemented */
29 ( void ) regs;
30 ( void ) pc;
31}
32
33static inline void gdbmach_set_single_step ( gdbreg_t *regs, int step ) {
34 /* Not yet implemented */
35 ( void ) regs;
36 ( void ) step;
37}
38
39static inline void gdbmach_breakpoint ( void ) {
40 /* Not yet implemented */
41}
42
43extern int gdbmach_set_breakpoint ( int type, unsigned long addr, size_t len,
44 int enable );
45extern void gdbmach_init ( void );
46
47#endif /* _BITS_GDBMACH_H */
static void gdbmach_breakpoint(void)
Definition gdbmach.h:66
unsigned long gdbreg_t
Definition gdbmach.h:17
int gdbmach_set_breakpoint(int type, unsigned long addr, size_t len, int enable)
Set hardware breakpoint.
Definition gdbmach.c:134
@ GDBMACH_NREGS
Definition gdbmach.h:38
void gdbmach_init(void)
Initialise GDB.
Definition gdbmach.c:242
static void gdbmach_set_pc(gdbreg_t *regs, gdbreg_t pc)
Definition gdbmach.h:57
static void gdbmach_set_single_step(gdbreg_t *regs, int step)
Definition gdbmach.h:61
ring len
Length.
Definition dwmac.h:226
uint32_t addr
Buffer address.
Definition dwmac.h:9
uint32_t type
Operating system type.
Definition ena.h:1
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
void step(void)
Single-step a single process.
Definition process.c:99
struct i386_regs regs
Definition registers.h:1