aboutsummaryrefslogtreecommitdiff
path: root/gdb/x86-64-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-05-31 16:49:18 +0000
committerMark Kettenis <kettenis@gnu.org>2003-05-31 16:49:18 +0000
commit1c3545aea9b4e7106e736ed3f6908e5a5d42d015 (patch)
tree1848cd698347323012cdc2d4eae6fb7f05d4e494 /gdb/x86-64-tdep.c
parente11c53d2ed9beadb12c0aeb8b91f763ea3fe5dab (diff)
downloadgdb-1c3545aea9b4e7106e736ed3f6908e5a5d42d015.zip
gdb-1c3545aea9b4e7106e736ed3f6908e5a5d42d015.tar.gz
gdb-1c3545aea9b4e7106e736ed3f6908e5a5d42d015.tar.bz2
* i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
have a sigcontext_addr handler. * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a sigcontext_addr handler.
Diffstat (limited to 'gdb/x86-64-tdep.c')
-rw-r--r--gdb/x86-64-tdep.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c
index 7bcabfd..a33d33a 100644
--- a/gdb/x86-64-tdep.c
+++ b/gdb/x86-64-tdep.c
@@ -1094,7 +1094,11 @@ x86_64_sigtramp_frame_p (CORE_ADDR pc)
find_pc_partial_function (pc, &name, NULL, NULL);
if (PC_IN_SIGTRAMP (pc, name))
- return &x86_64_sigtramp_frame_unwind;
+ {
+ gdb_assert (gdbarch_tdep (current_gdbarch)->sigcontext_addr);
+
+ return &x86_64_sigtramp_frame_unwind;
+ }
return NULL;
}