Changes in kernel/arch/mips32/include/debugger.h [d99c1d2:63bdde6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/include/debugger.h
rd99c1d2 r63bdde6 41 41 #define BKPOINTS_MAX 10 42 42 43 #define BKPOINT_INPROG (1 << 0) /**< Breakpoint was shot */ 44 #define BKPOINT_ONESHOT (1 << 1) /**< One-time breakpoint,mandatory for j/b 45 instructions */ 46 #define BKPOINT_REINST (1 << 2) /**< Breakpoint is set on the next 47 instruction, so that it could be 48 reinstalled on the previous one */ 49 #define BKPOINT_FUNCCALL (1 << 3) /**< Call a predefined function */ 43 /** Breakpoint was shot */ 44 #define BKPOINT_INPROG (1 << 0) 45 46 /** One-time breakpoint, mandatory for j/b instructions */ 47 #define BKPOINT_ONESHOT (1 << 1) 48 49 /** 50 * Breakpoint is set on the next instruction, so that it 51 * could be reinstalled on the previous one 52 */ 53 #define BKPOINT_REINST (1 << 2) 54 55 /** Call a predefined function */ 56 #define BKPOINT_FUNCCALL (1 << 3) 57 50 58 51 59 typedef struct { 52 uintptr_t address; /**< Breakpoint address */53 unative_t instruction; /**< Original instruction */60 uintptr_t address; /**< Breakpoint address */ 61 unative_t instruction; /**< Original instruction */ 54 62 unative_t nextinstruction; /**< Original instruction following break */ 55 int flags;/**< Flags regarding breakpoint */63 unsigned int flags; /**< Flags regarding breakpoint */ 56 64 size_t counter; 57 void (*bkfunc)(void * b, istate_t *istate);65 void (*bkfunc)(void *, istate_t *); 58 66 } bpinfo_t; 59 67 68 extern bpinfo_t breakpoints[BKPOINTS_MAX]; 69 70 extern bool is_jump(unative_t); 71 60 72 extern void debugger_init(void); 61 void debugger_bpoint(istate_t *istate); 62 63 extern bpinfo_t breakpoints[BKPOINTS_MAX]; 73 extern void debugger_bpoint(istate_t *); 64 74 65 75 #endif
Note:
See TracChangeset
for help on using the changeset viewer.