Fix IS_BREAKPOINT_TRAP: EXP_BREAK is not a breakpoint trap, it's UBC

(user break controller) trap, and we use UBC for single-stepping, not
for ddb breakpoints.  ddb breakpoints are "trapa 0xc3".
This commit is contained in:
uwe 2008-06-07 22:22:10 +00:00
parent 5fc69ea9ab
commit 720af5afe1
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_machdep.h,v 1.13 2007/02/21 22:59:51 thorpej Exp $ */
/* $NetBSD: db_machdep.h,v 1.14 2008/06/07 22:22:10 uwe Exp $ */
/*
* Mach Operating System
@ -54,8 +54,9 @@ extern db_regs_t ddb_regs; /* register state */
#define FIXUP_PC_AFTER_BREAK(regs) ((regs)->tf_spc -= BKPT_SIZE)
#define IS_BREAKPOINT_TRAP(type, code) ((type) == EXPEVT_BREAK)
#define IS_WATCHPOINT_TRAP(type, code) (0) /* XXX (msaitoh) */
#define IS_BREAKPOINT_TRAP(type, code) \
((type) == EXPEVT_TRAPA && (code) == _SH_TRA_BREAK)
#define IS_WATCHPOINT_TRAP(type, code) (false)
#define inst_load(ins) 0
#define inst_store(ins) 0