diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2013-06-26 15:37:49 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2013-06-26 15:37:49 +0000 |
commit | a2fb2cee96b4d248ff8e0f77990aabe0dea0ae25 (patch) | |
tree | 253a6e416d1b1d8af1c04113be472cf12b2ec7cb /gdb/mips-tdep.c | |
parent | 86ebe1497f1fc9f5b7a4d56a9e5689f1fcf38882 (diff) | |
download | fsf-binutils-gdb-a2fb2cee96b4d248ff8e0f77990aabe0dea0ae25.zip fsf-binutils-gdb-a2fb2cee96b4d248ff8e0f77990aabe0dea0ae25.tar.gz fsf-binutils-gdb-a2fb2cee96b4d248ff8e0f77990aabe0dea0ae25.tar.bz2 |
* mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r-- | gdb/mips-tdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 74f27bc..3993f92 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); } |