This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Adjust OpenBSD/amd64 signal trampoline recognition
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 22 Feb 2004 01:11:53 +0100 (CET)
- Subject: [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;