This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH/obvious?] Fix typo in gdb/frv-linux-tdep.c


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]