* mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.

This commit is contained in:
Maciej W. Rozycki 2013-06-26 15:37:49 +00:00
parent 86ebe1497f
commit a2fb2cee96
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
* mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
* tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.

View File

@ -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);
}