diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2005-01-10 21:20:53 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2005-01-10 21:20:53 +0000 |
commit | 249471b30c32cbad6101772545f4a59f2396bdb7 (patch) | |
tree | 6b69f34e55324acf5f22221f8d33e6af5d30310c /sys | |
parent | 06cdd87f29b8c66034462206917a6e312000d163 (diff) |
proper SET_PC_REGS,
okay kettenis@,
something-vaguely-looking-like-an-okay mickey@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/include/db_machdep.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/amd64/include/db_machdep.h b/sys/arch/amd64/include/db_machdep.h index 600e1e95557..db32d3b939b 100644 --- a/sys/arch/amd64/include/db_machdep.h +++ b/sys/arch/amd64/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.h,v 1.3 2004/07/22 11:15:00 art Exp $ */ +/* $OpenBSD: db_machdep.h,v 1.4 2005/01/10 21:20:52 espie Exp $ */ /* $NetBSD: db_machdep.h,v 1.2 2003/04/29 17:06:04 scw Exp $ */ /* @@ -47,11 +47,8 @@ typedef struct trapframe db_regs_t; extern db_regs_t ddb_regs; /* register state */ #define DDB_REGS (&ddb_regs) -#if defined(lint) -#define PC_REGS(regs) ((regs)->tf_rip) -#else #define PC_REGS(regs) ((db_addr_t)(regs)->tf_rip) -#endif +#define SET_PC_REGS(regs, value) (regs)->tf_rip = (int64_t)(value) #define BKPT_ADDR(addr) (addr) /* breakpoint address */ #define BKPT_INST 0xcc /* breakpoint instruction */ |