* i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
[deliverable/binutils-gdb.git] / gdb / i386-tdep.c
index 1cbe0437f0c8b3452062a5f8ee568cf299c466c0..c03df8e7435de9709ccbae4557465f74ebcb10dd 100644 (file)
@@ -930,6 +930,11 @@ i386_sigtramp_frame_p (CORE_ADDR pc)
 {
   char *name;
 
+  /* We shouldn't even bother to try if the OSABI didn't register
+     a sigcontext_addr handler.  */
+  if (!gdbarch_tdep (current_gdbarch)->sigcontext_addr)
+    return NULL;
+
   find_pc_partial_function (pc, &name, NULL, NULL);
   if (PC_IN_SIGTRAMP (pc, name))
     return &i386_sigtramp_frame_unwind;
This page took 0.026842 seconds and 4 git commands to generate.