summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-01-04 21:14:36 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-01-04 21:14:36 +0000
commit9a39dbad38eec14f35f541cef78cd71d69ad695b (patch)
treec20955122c54aa90a95b9cdf468c6170329ace31 /sys/arch/i386/include
parenta489d26f9c81ec1e2b32444e6a158a7dc63fe84b (diff)
SET_PC_REGS, arches tested between me and miod.
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r--sys/arch/i386/include/db_machdep.h3
1 files changed, 2 insertions, 1 deletions
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 */