-/* $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 $ */
/*
#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_ */
#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)
#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)
-/* $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 $ */
/*
#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)
#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)
-/* $OpenBSD: db_run.c,v 1.4 1996/04/21 22:19:10 deraadt Exp $ */
+/* $OpenBSD: db_run.c,v 1.5 1997/03/21 00:48:41 niklas Exp $ */
/* $NetBSD: db_run.c,v 1.8 1996/02/05 01:57:12 christos Exp $ */
/*
* Breakpoint trap. Fix up the PC if the
* machine requires it.
*/
- FIXUP_PC_AFTER_BREAK
+ FIXUP_PC_AFTER_BREAK(regs);
pc = PC_REGS(regs);
}
#endif