diff options
author | 2013-10-19 09:33:36 +0000 | |
---|---|---|
committer | 2013-10-19 09:33:36 +0000 | |
commit | 5250c84d3ce35c595ea7caf7b9e91dbc164c095b (patch) | |
tree | 6316db9550fb735b7534d6e3343ef0cbb18cebde | |
parent | Use daddr_t * instead of int * for the partoffp parameter to (diff) | |
download | wireguard-openbsd-5250c84d3ce35c595ea7caf7b9e91dbc164c095b.tar.xz wireguard-openbsd-5250c84d3ce35c595ea7caf7b9e91dbc164c095b.zip |
Depending on wether the kernel has been compiled with or without
debug information, gdb will either see calltrap or alltraps in the
stack trace of a kernel core file. To make the gdb backtrace command
work without debug information in the amd64 kernel, add the same
special case for alltraps as for calltrap.
OK miod@
-rw-r--r-- | gnu/usr.bin/binutils/gdb/amd64obsd-tdep.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/gdb/amd64obsd-tdep.c b/gnu/usr.bin/binutils/gdb/amd64obsd-tdep.c index 8011f9e6d69..ee822a1f296 100644 --- a/gnu/usr.bin/binutils/gdb/amd64obsd-tdep.c +++ b/gnu/usr.bin/binutils/gdb/amd64obsd-tdep.c @@ -434,6 +434,7 @@ amd64obsd_trapframe_sniffer (const struct frame_unwind *self, find_pc_partial_function (frame_pc_unwind (next_frame), &name, NULL, NULL); return (name && ((strcmp (name, "calltrap") == 0) + || (strcmp (name, "alltraps") == 0) || (strcmp (name, "osyscall1") == 0) || (strcmp (name, "Xsyscall") == 0) || (strncmp (name, "Xintr", 5) == 0))); |