[PATCH/obvious?] Fix typo in gdb/frv-linux-tdep.c
Sergio Durigan Junior
sergiodj@redhat.com
Mon Dec 17 03:24:00 GMT 2012
Hi,
My xscreensaver is programmed to display GDB code when the computer is
idle. I found this some day when I looked at the screen before
unlocking it.
I have the strong feeling that this is a typo, but I am in no way expert
in this architecture to know, nor I have means to test this
modification.
WDYT?
--
Sergio
2012-12-17 Sergio Durigan Junior <sergiodj@redhat.com>
* frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Fix typo.
diff --git a/gdb/frv-linux-tdep.c b/gdb/frv-linux-tdep.c
index dd41883..4c0c0df 100644
--- a/gdb/frv-linux-tdep.c
+++ b/gdb/frv-linux-tdep.c
@@ -57,7 +57,7 @@ frv_linux_pc_in_sigtramp (struct gdbarch *gdbarch, CORE_ADDR pc,
if (instr == 0x8efc0077) /* setlos #__NR_sigreturn, gr7 */
retval = NORMAL_SIGTRAMP;
- else if (instr -= 0x8efc00ad) /* setlos #__NR_rt_sigreturn, gr7 */
+ else if (instr == 0x8efc00ad) /* setlos #__NR_rt_sigreturn, gr7 */
retval = RT_SIGTRAMP;
else
return 0;
More information about the Gdb-patches
mailing list