Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/include/db_machdep.h
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
typedef long db_expr_t; | typedef long db_expr_t; | ||||
#define PC_REGS() ((db_addr_t)kdb_thrctx->pcb_lr) | #define PC_REGS() ((db_addr_t)kdb_thrctx->pcb_lr) | ||||
#define BKPT_INST (0xd4200000) | #define BKPT_INST (0xd4200000) | ||||
#define BKPT_SIZE (4) | #define BKPT_SIZE (4) | ||||
#define BKPT_SET(inst) (BKPT_INST) | #define BKPT_SET(inst) (BKPT_INST) | ||||
#define BKPT_SKIP do { \ | #define BKPT_SKIP do { \ | ||||
kdb_frame->tf_elr += BKPT_SIZE; \ | kdb_frame->tf_elr += BKPT_SIZE; \ | ||||
kdb_thrctx->pcb_lr += BKPT_SIZE; \ | |||||
} while (0) | } while (0) | ||||
#define db_clear_single_step kdb_cpu_clear_singlestep | #define db_clear_single_step kdb_cpu_clear_singlestep | ||||
#define db_set_single_step kdb_cpu_set_singlestep | #define db_set_single_step kdb_cpu_set_singlestep | ||||
#define IS_BREAKPOINT_TRAP(type, code) (type == T_BREAKPOINT) | #define IS_BREAKPOINT_TRAP(type, code) (type == T_BREAKPOINT) | ||||
#define IS_WATCHPOINT_TRAP(type, code) (type == T_WATCHPOINT) | #define IS_WATCHPOINT_TRAP(type, code) (type == T_WATCHPOINT) | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |