* 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.
This commit is contained in:
parent
e11c53d2ed
commit
1c3545aea9
3 changed files with 17 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2003-05-31 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* 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.
|
||||
|
||||
2003-05-31 Andrew Cagney <cagney@redhat.com>
|
||||
|
||||
* mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue