mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-02 23:04:09 +08:00
* mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
This commit is contained in:
parent
86ebe1497f
commit
a2fb2cee96
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user