summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2011-09-03 01:24:21 +0000
committerguenther <guenther@openbsd.org>2011-09-03 01:24:21 +0000
commitb1f8f2d84ed6f40dd530d91a7fe36946e263e8c5 (patch)
tree217c0fc671da36ef53661d7cfc6e1bf7ebd699f8
parentAdd a general warning about gdb matching against sigcode instructions (diff)
downloadwireguard-openbsd-b1f8f2d84ed6f40dd530d91a7fe36946e263e8c5.tar.xz
wireguard-openbsd-b1f8f2d84ed6f40dd530d91a7fe36946e263e8c5.zip
Fix backtrace across signals on amd64
ok kettenis@
-rw-r--r--gnu/usr.bin/binutils/gdb/amd64obsd-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/gdb/amd64obsd-tdep.c b/gnu/usr.bin/binutils/gdb/amd64obsd-tdep.c
index e47203172fd..8011f9e6d69 100644
--- a/gnu/usr.bin/binutils/gdb/amd64obsd-tdep.c
+++ b/gnu/usr.bin/binutils/gdb/amd64obsd-tdep.c
@@ -92,7 +92,7 @@ amd64obsd_sigtramp_p (struct frame_info *next_frame)
{
0x48, 0xc7, 0xc0,
0x67, 0x00, 0x00, 0x00, /* movq $SYS_sigreturn, %rax */
- 0xcd, 0x80 /* int $0x80 */
+ 0x0f, 0x05 /* syscall */
};
size_t buflen = (sizeof sigreturn) + 1;
char *name, *buf;