This is the mail archive of the gdb-patches@sources.redhat.com 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] Adjust OpenBSD/amd64 signal trampoline recognition


GDB allowed me to fix a nasty bug in the OpenBSD/amd64 kernel, but
then I forgot to fix GDB itself.  Anyway, this makes GDB recognize the
signal trampoline again.

Committed,

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>
 
	* amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
	trampoline change in OpenBSD kernel.

Index: amd64obsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64obsd-tdep.c,v
retrieving revision 1.2
diff -u -p -r1.2 amd64obsd-tdep.c
--- amd64obsd-tdep.c 20 Feb 2004 19:03:13 -0000 1.2
+++ amd64obsd-tdep.c 22 Feb 2004 00:07:50 -0000
@@ -84,7 +84,7 @@ amd64obsd_pc_in_sigtramp (CORE_ADDR pc, 
   {
     0x48, 0xc7, 0xc0,
     0x67, 0x00, 0x00, 0x00,	/* movq $SYS_sigreturn, %rax */
-    0x0f, 0x05			/* syscall */
+    0xcd, 0x80			/* int $0x80 */
   };
   char *buf;
 


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