diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-03-21 00:48:51 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-03-21 00:48:51 +0000 |
commit | e77a1bd816e468f713cd4bb1895016196571e226 (patch) | |
tree | 8305e9d2ba4628fd162f752b9ae6f543cd647ecf /sys/arch/i386/include | |
parent | 7778854b03ddb0ae13c95c2f244eda65079e2464 (diff) |
New FIXUP_PC_AFTER_BREAK convention from NetBSD
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r-- | sys/arch/i386/include/db_machdep.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arch/i386/include/db_machdep.h b/sys/arch/i386/include/db_machdep.h index a2d26ded1f0..e14392d5309 100644 --- a/sys/arch/i386/include/db_machdep.h +++ b/sys/arch/i386/include/db_machdep.h @@ -50,7 +50,7 @@ db_regs_t ddb_regs; /* register state */ #define BKPT_SIZE (1) /* size of breakpoint inst */ #define BKPT_SET(inst) (BKPT_INST) -#define FIXUP_PC_AFTER_BREAK ddb_regs.tf_eip -= BKPT_SIZE; +#define FIXUP_PC_AFTER_BREAK(regs) ((regs)->tf_eip -= BKPT_SIZE) #define db_clear_single_step(regs) ((regs)->tf_eflags &= ~PSL_T) #define db_set_single_step(regs) ((regs)->tf_eflags |= PSL_T) |