From a2fb2cee96b4d248ff8e0f77990aabe0dea0ae25 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Wed, 26 Jun 2013 15:37:49 +0000 Subject: [PATCH] * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr. --- gdb/ChangeLog | 4 ++++ gdb/mips-tdep.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0919016081d..0774a13512b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2013-06-26 Maciej W. Rozycki + + * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr. + 2013-06-26 Dmitry Kozlov * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime. 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); } -- 2.30.2