summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorsimonb <simonb@NetBSD.org>2003-10-26 00:08:23 +0000
committersimonb <simonb@NetBSD.org>2003-10-26 00:08:23 +0000
commit969d07f64f3391c681c1a85eae6f0366b45bdb53 (patch)
tree0cd8dd3b1e7eed4cc5052092767d5134b0f2a55f /gnu
parent793c50136c4eb8e0c15a3c69c5f629e9f3f6db0e (diff)
* mips-tdep.c (mips_addr_bits_remove): Don't shift by 32
From Ian Taylor.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/dist/gdb/gdb/mips-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/dist/gdb/gdb/mips-tdep.c b/gnu/dist/gdb/gdb/mips-tdep.c
index a8ff5776d75..e991e4c90ab 100644
--- a/gnu/dist/gdb/gdb/mips-tdep.c
+++ b/gnu/dist/gdb/gdb/mips-tdep.c
@@ -1613,7 +1613,7 @@ mips_addr_bits_remove (CORE_ADDR addr)
{
if (GDB_TARGET_IS_MIPS64)
{
- if (mips_mask_address_p () && (addr >> 32 == (CORE_ADDR) 0xffffffff))
+ if (mips_mask_address_p () && ((addr >> 16) >> 16 == (CORE_ADDR) 0xffffffff))
{
/* This hack is a work-around for existing boards using
PMON, the simulator, and any other 64-bit targets that