Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/include/db_machdep.h
Show All 37 Lines | |||||
#include <machine/trap.h> | #include <machine/trap.h> | ||||
#define T_BREAKPOINT (EXCP_BRK) | #define T_BREAKPOINT (EXCP_BRK) | ||||
#define T_WATCHPOINT (EXCP_WATCHPT_EL1) | #define T_WATCHPOINT (EXCP_WATCHPT_EL1) | ||||
typedef vm_offset_t db_addr_t; | typedef vm_offset_t db_addr_t; | ||||
typedef long db_expr_t; | typedef long db_expr_t; | ||||
#define PC_REGS() ((db_addr_t)kdb_thrctx->pcb_pc) | #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; \ | ||||
} while (0) | } while (0) | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |