Remove unneeded cast that prevents PC_REGS from being used as lvalue.
This commit is contained in:
parent
c3b2957983
commit
820df2464a
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_machdep.h,v 1.19 2002/10/01 12:57:05 fvdl Exp $ */
|
||||
/* $NetBSD: db_machdep.h,v 1.20 2003/03/30 02:04:09 kristerw Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -50,11 +50,7 @@ extern db_regs_t *ddb_regp;
|
|||
#define ddb_regs (*ddb_regp)
|
||||
#endif
|
||||
|
||||
#if defined(lint)
|
||||
#define PC_REGS(regs) ((regs)->tf_eip)
|
||||
#else
|
||||
#define PC_REGS(regs) ((db_addr_t)(regs)->tf_eip)
|
||||
#endif
|
||||
|
||||
#define BKPT_INST 0xcc /* breakpoint instruction */
|
||||
#define BKPT_SIZE (1) /* size of breakpoint inst */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_machdep.h,v 1.22 2000/06/26 14:59:01 mrg Exp $ */
|
||||
/* $NetBSD: db_machdep.h,v 1.23 2003/03/30 02:03:12 kristerw Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -51,7 +51,7 @@ typedef struct trapframe db_regs_t;
|
|||
extern db_regs_t ddb_regs; /* register state */
|
||||
#define DDB_REGS (&ddb_regs)
|
||||
|
||||
#define PC_REGS(regs) ((db_addr_t)(regs)->tf_pc)
|
||||
#define PC_REGS(regs) ((regs)->tf_pc)
|
||||
|
||||
#define BKPT_INST 0x4e4f /* breakpoint instruction */
|
||||
#define BKPT_SIZE (2) /* size of breakpoint inst */
|
||||
|
|
Loading…
Reference in New Issue