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 | |
parent | 7778854b03ddb0ae13c95c2f244eda65079e2464 (diff) |
New FIXUP_PC_AFTER_BREAK convention from NetBSD
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/alpha/include/db_machdep.h | 4 | ||||
-rw-r--r-- | sys/arch/i386/include/db_machdep.h | 2 | ||||
-rw-r--r-- | sys/arch/pc532/include/db_machdep.h | 2 | ||||
-rw-r--r-- | sys/arch/powerpc/include/db_machdep.h | 4 | ||||
-rw-r--r-- | sys/arch/vax/include/db_machdep.h | 2 |
5 files changed, 6 insertions, 8 deletions
diff --git a/sys/arch/alpha/include/db_machdep.h b/sys/arch/alpha/include/db_machdep.h index 7a5aadc64b6..d3eaf612c83 100644 --- a/sys/arch/alpha/include/db_machdep.h +++ b/sys/arch/alpha/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.h,v 1.3 1996/10/30 22:38:58 niklas Exp $ */ +/* $OpenBSD: db_machdep.h,v 1.4 1997/03/21 00:48:43 niklas Exp $ */ /* $NetBSD: db_machdep.h,v 1.2 1996/07/11 05:31:31 cgd Exp $ */ /* @@ -52,6 +52,6 @@ db_regs_t ddb_regs; /* register state */ #define BKPT_SIZE (4) /* size of breakpoint inst */ #define BKPT_SET(inst) (BKPT_INST) -#define FIXUP_PC_AFTER_BREAK ddb_regs.tf_regs[FRAME_PC] -= BKPT_SIZE; +#define FIXUP_PC_AFTER_BREAK(regs) ((regs)->tf_regs[FRAME_PC] -= BKPT_SIZE) #endif /* _ALPHA_DB_MACHDEP_H_ */ 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) diff --git a/sys/arch/pc532/include/db_machdep.h b/sys/arch/pc532/include/db_machdep.h index a20ea5465d0..cfff2199bf5 100644 --- a/sys/arch/pc532/include/db_machdep.h +++ b/sys/arch/pc532/include/db_machdep.h @@ -72,8 +72,6 @@ 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.pc -= 1; */ - #define db_clear_single_step(regs) ((regs)->psr &= ~PSR_T) #define db_set_single_step(regs) ((regs)->psr |= PSR_T) diff --git a/sys/arch/powerpc/include/db_machdep.h b/sys/arch/powerpc/include/db_machdep.h index da7ae99fab6..ffa033ee78d 100644 --- a/sys/arch/powerpc/include/db_machdep.h +++ b/sys/arch/powerpc/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.h,v 1.1 1996/12/28 06:09:17 rahnds Exp $ */ +/* $OpenBSD: db_machdep.h,v 1.2 1997/03/21 00:48:48 niklas Exp $ */ /* $NetBSD: db_machdep.h,v 1.13 1996/04/29 20:50:08 leo Exp $ */ /* @@ -89,7 +89,7 @@ db_regs_t ddb_regs; /* register state */ #define BKPT_SIZE (4) /* size of breakpoint inst */ #define BKPT_SET(inst) (BKPT_INST) -#define FIXUP_PC_AFTER_BREAK ddb_regs.iar -= 4; +#define FIXUP_PC_AFTER_BREAK(regs) ((regs)->iar -= 4) #define SR_SINGLESTEP 0x8000 #define db_clear_single_step(regs) ((regs)->msr &= ~SR_SINGLESTEP) diff --git a/sys/arch/vax/include/db_machdep.h b/sys/arch/vax/include/db_machdep.h index 1cbaa2c5d43..d69f9a4874a 100644 --- a/sys/arch/vax/include/db_machdep.h +++ b/sys/arch/vax/include/db_machdep.h @@ -51,7 +51,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.pc -= BKPT_SIZE; +#define FIXUP_PC_AFTER_BREAK(regs) ((regs)->pc -= BKPT_SIZE) #define db_clear_single_step(regs) ((regs)->psl &= ~PSL_T) #define db_set_single_step(regs) ((regs)->psl |= PSL_T) |