Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/include/debugger.h

    r63bdde6 rd99c1d2  
    4141#define BKPOINTS_MAX 10
    4242
    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 */
    5850
    5951typedef struct  {
    60         uintptr_t address;          /**< Breakpoint address */
    61         unative_t instruction;      /**< Original instruction */
     52        uintptr_t address;      /**< Breakpoint address */
     53        unative_t instruction; /**< Original instruction */
    6254        unative_t nextinstruction;  /**< Original instruction following break */
    63         unsigned int flags;         /**< Flags regarding breakpoint */
     55        int flags;        /**< Flags regarding breakpoint */
    6456        size_t counter;
    65         void (*bkfunc)(void *, istate_t *);
     57        void (*bkfunc)(void *b, istate_t *istate);
    6658} bpinfo_t;
    6759
     60extern void debugger_init(void);
     61void debugger_bpoint(istate_t *istate);
     62
    6863extern 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 *);
    7464
    7565#endif
Note: See TracChangeset for help on using the changeset viewer.