diff options
author | Randolph Chung <tausq@debian.org> | 2005-11-19 12:47:21 +0000 |
---|---|---|
committer | Randolph Chung <tausq@debian.org> | 2005-11-19 12:47:21 +0000 |
commit | 765697c9ece06d58afb62cabe1b533d1c0fcb2bd (patch) | |
tree | fb0fa699f3bc880b5567403b1d078ca6a1a433a9 /gdb/hppa-hpux-tdep.c | |
parent | c4c79048fa21fc836bddd5abccc3956ad6b6bcf9 (diff) | |
download | gdb-765697c9ece06d58afb62cabe1b533d1c0fcb2bd.zip gdb-765697c9ece06d58afb62cabe1b533d1c0fcb2bd.tar.gz gdb-765697c9ece06d58afb62cabe1b533d1c0fcb2bd.tar.bz2 |
2005-11-19 Randolph Chung <tausq@debian.org>
* hppa-hpux-tdep.c (hppa_hpux_sigtramp_unwind_sniffer): Rely on the
unwind record to determine a signal frame, instead of hardcoding
a function name.
Diffstat (limited to 'gdb/hppa-hpux-tdep.c')
-rw-r--r-- | gdb/hppa-hpux-tdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/hppa-hpux-tdep.c b/gdb/hppa-hpux-tdep.c index ed0abf9..c6cf45e 100644 --- a/gdb/hppa-hpux-tdep.c +++ b/gdb/hppa-hpux-tdep.c @@ -1246,12 +1246,12 @@ static const struct frame_unwind hppa_hpux_sigtramp_frame_unwind = { static const struct frame_unwind * hppa_hpux_sigtramp_unwind_sniffer (struct frame_info *next_frame) { + struct unwind_table_entry *u; CORE_ADDR pc = frame_pc_unwind (next_frame); - char *name; - find_pc_partial_function (pc, &name, NULL, NULL); + u = find_unwind_entry (pc); - if (name && strcmp(name, "_sigreturn") == 0) + if (u && u->HP_UX_interrupt_marker) return &hppa_hpux_sigtramp_frame_unwind; return NULL; |