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 
13 #include <stdint.h>
14 
15 typedef unsigned long gdbreg_t;
16 
17 /* Register snapshot */
18 enum {
19  /* Not yet implemented */
21 };
22 
23 #define GDBMACH_SIZEOF_REGS ( GDBMACH_NREGS * sizeof ( gdbreg_t ) )
24 
25 static inline void gdbmach_set_pc ( gdbreg_t *regs, gdbreg_t pc ) {
26  /* Not yet implemented */
27  ( void ) regs;
28  ( void ) pc;
29 }
30 
31 static inline void gdbmach_set_single_step ( gdbreg_t *regs, int step ) {
32  /* Not yet implemented */
33  ( void ) regs;
34  ( void ) step;
35 }
36 
37 static inline void gdbmach_breakpoint ( void ) {
38  /* Not yet implemented */
39 }
40 
41 extern int gdbmach_set_breakpoint ( int type, unsigned long addr, size_t len,
42  int enable );
43 extern void gdbmach_init ( void );
44 
45 #endif /* _BITS_GDBMACH_H */
void gdbmach_init(void)
Initialise GDB.
Definition: gdbmach.c:241
unsigned long gdbreg_t
Definition: gdbmach.h:15
uint32_t type
Operating system type.
Definition: ena.h:12
static void gdbmach_set_pc(gdbreg_t *regs, gdbreg_t pc)
Definition: gdbmach.h:25
static void gdbmach_breakpoint(void)
Definition: gdbmach.h:37
int gdbmach_set_breakpoint(int type, unsigned long addr, size_t len, int enable)
Set hardware breakpoint.
Definition: gdbmach.c:133
static void gdbmach_set_single_step(gdbreg_t *regs, int step)
Definition: gdbmach.h:31
struct i386_regs regs
Definition: registers.h:15
u32 addr
Definition: sky2.h:8
void step(void)
Single-step a single process.
Definition: process.c:98
uint32_t len
Length.
Definition: ena.h:14