From ff147f9d5b9eb89bbf290e2709df235ed6dd0baf Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 26 Jun 2006 14:11:29 +0000 Subject: [PATCH] define PC_ADVANCE to avoid a LHS cast which makes gcc4 unhappy. From Kurt Schreiner --- sys/arch/amd64/include/db_machdep.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/arch/amd64/include/db_machdep.h b/sys/arch/amd64/include/db_machdep.h index 22c0d7841bbe..1d312ff9256c 100644 --- a/sys/arch/amd64/include/db_machdep.h +++ b/sys/arch/amd64/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $NetBSD: db_machdep.h,v 1.4 2006/04/01 15:44:59 cherry Exp $ */ +/* $NetBSD: db_machdep.h,v 1.5 2006/06/26 14:11:29 christos Exp $ */ /* * Mach Operating System @@ -51,11 +51,8 @@ extern db_regs_t *ddb_regp; #define ddb_regs (*ddb_regp) #endif -#if defined(lint) #define PC_REGS(regs) ((regs)->tf_rip) -#else -#define PC_REGS(regs) ((db_addr_t)(regs)->tf_rip) -#endif +#define PC_ADVANCE(r) ((r)->tf_rip += BKPT_SIZE) #define BKPT_ADDR(addr) (addr) /* breakpoint address */ #define BKPT_INST 0xcc /* breakpoint instruction */