From 9a39dbad38eec14f35f541cef78cd71d69ad695b Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Tue, 4 Jan 2005 21:14:36 +0000 Subject: SET_PC_REGS, arches tested between me and miod. --- sys/arch/i386/include/db_machdep.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/arch/i386/include') diff --git a/sys/arch/i386/include/db_machdep.h b/sys/arch/i386/include/db_machdep.h index ef3996305a1..ac49fe52e91 100644 --- a/sys/arch/i386/include/db_machdep.h +++ b/sys/arch/i386/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.h,v 1.13 2004/07/20 20:18:53 art Exp $ */ +/* $OpenBSD: db_machdep.h,v 1.14 2005/01/04 21:14:35 espie Exp $ */ /* $NetBSD: db_machdep.h,v 1.9 1996/05/03 19:23:59 christos Exp $ */ /* @@ -46,6 +46,7 @@ db_regs_t ddb_regs; /* register state */ #define DDB_REGS (&ddb_regs) #define PC_REGS(regs) ((db_addr_t)(regs)->tf_eip) +#define SET_PC_REGS(regs, value) (regs)->tf_eip = (int)(value) #define BKPT_INST 0xcc /* breakpoint instruction */ #define BKPT_SIZE (1) /* size of breakpoint inst */ -- cgit v1.2.3