Changes in kernel/arch/mips32/include/debugger.h [63bdde6:d99c1d2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/include/debugger.h
r63bdde6 rd99c1d2 41 41 #define BKPOINTS_MAX 10 42 42 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 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 */ 58 50 59 51 typedef struct { 60 uintptr_t address; 61 unative_t instruction; 52 uintptr_t address; /**< Breakpoint address */ 53 unative_t instruction; /**< Original instruction */ 62 54 unative_t nextinstruction; /**< Original instruction following break */ 63 unsigned int flags;/**< Flags regarding breakpoint */55 int flags; /**< Flags regarding breakpoint */ 64 56 size_t counter; 65 void (*bkfunc)(void * , istate_t *);57 void (*bkfunc)(void *b, istate_t *istate); 66 58 } bpinfo_t; 67 59 60 extern void debugger_init(void); 61 void debugger_bpoint(istate_t *istate); 62 68 63 extern bpinfo_t breakpoints[BKPOINTS_MAX]; 69 70 extern bool is_jump(unative_t);71 72 extern void debugger_init(void);73 extern void debugger_bpoint(istate_t *);74 64 75 65 #endif
Note:
See TracChangeset
for help on using the changeset viewer.