summaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2013-06-26 15:37:49 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2013-06-26 15:37:49 +0000
commit8dd829c3b71bce6c874eb3304de5069f19ceb460 (patch)
tree9f9e361b1926a2ab95c9a8cc01a4eda80841cfec /gdb/mips-tdep.c
parent4cc243ce08bddf955f094743278dd9bc0ab57605 (diff)
downloadgdb-8dd829c3b71bce6c874eb3304de5069f19ceb460.tar.gz
* mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 74f27bc7e67..3993f9259c9 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -2042,7 +2042,8 @@ fetch_mips_16 (struct gdbarch *gdbarch, CORE_ADDR pc)
{
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
gdb_byte buf[8];
- pc &= 0xfffffffe; /* Clear the low order bit. */
+
+ pc = unmake_compact_addr (pc); /* Clear the low order bit. */
target_read_memory (pc, buf, 2);
return extract_unsigned_integer (buf, 2, byte_order);
}