* [PATCH, MIPS] Move encoded as 'or' in binutils.
@ 2015-07-31 15:52 Simon Dardis
0 siblings, 0 replies; only message in thread
From: Simon Dardis @ 2015-07-31 15:52 UTC (permalink / raw)
To: gdb-patches
Hello all,
A recently submitted patch ( http://sourceware.org/ml/binutils/2015-07/msg00376.html ) to binutils will be
encoding move as an 'or' instruction over [d]addu in assembly and various code stubs. This patch for gdb
addresses that change for the mips specific parts of gdb.
Thanks,
Simon
gdb/
* mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
as move along with [d]addu.
diff --git a/gdb/mips-linux-tdep.c b/gdb/mips-linux-tdep.c
index c2cec3d..62a998d 100644
--- a/gdb/mips-linux-tdep.c
+++ b/gdb/mips-linux-tdep.c
@@ -737,15 +737,17 @@ mips_linux_in_dynsym_stub (CORE_ADDR pc)
insn = extract_unsigned_integer (p + 4, 4, byte_order);
if (n64)
{
- /* daddu t7,ra */
- if (insn != 0x03e0782d)
+ /* 'daddu t7,ra' or 'or t7, ra, zero'*/
+ if (insn != 0x03e0782d || insn != 0x03e07825)
return 0;
+
}
else
{
- /* addu t7,ra */
- if (insn != 0x03e07821)
+ /* 'addu t7,ra' or 'or t7, ra, zero'*/
+ if (insn != 0x03e07821 || insn != 0x03e07825)
return 0;
+
}
insn = extract_unsigned_integer (p + 8, 4, byte_order);
--
2.1.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-07-31 15:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-31 15:52 [PATCH, MIPS] Move encoded as 'or' in binutils Simon Dardis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).