diff options
author | Mark Kettenis <kettenis@gnu.org> | 2005-12-13 10:24:35 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2005-12-13 10:24:35 +0000 |
commit | a717134b331a2e8ccd5e43f15683a202c4d7ea64 (patch) | |
tree | 1e4715b4e5b395cfcfe3fd3408e23bc8a8d2187c /gdb/hppa-hpux-tdep.c | |
parent | 755f4b216be934e2f6ac1a705d42622f46741a81 (diff) | |
download | gdb-a717134b331a2e8ccd5e43f15683a202c4d7ea64.zip gdb-a717134b331a2e8ccd5e43f15683a202c4d7ea64.tar.gz gdb-a717134b331a2e8ccd5e43f15683a202c4d7ea64.tar.bz2 |
* hppa-hpux-tdep.c (hppa_hpux_sigtramp_unwind_sniffer): Detect
export stub for signal trampoline as a signal trampoline too.
Diffstat (limited to 'gdb/hppa-hpux-tdep.c')
-rw-r--r-- | gdb/hppa-hpux-tdep.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gdb/hppa-hpux-tdep.c b/gdb/hppa-hpux-tdep.c index c1d35b5..17b4e2f 100644 --- a/gdb/hppa-hpux-tdep.c +++ b/gdb/hppa-hpux-tdep.c @@ -1276,6 +1276,22 @@ hppa_hpux_sigtramp_unwind_sniffer (struct frame_info *next_frame) u = find_unwind_entry (pc); + /* If this is an export stub, try to get the unwind descriptor for + the actual function itself. */ + if (u && u->stub_unwind.stub_type == EXPORT) + { + gdb_byte buf[HPPA_INSN_SIZE]; + unsigned long insn; + + if (!safe_frame_unwind_memory (next_frame, u->region_start, + buf, sizeof buf)) + return NULL; + + insn = extract_unsigned_integer (buf, sizeof buf); + if ((insn & 0xffe0e000) == 0xe8400000) + u = find_unwind_entry(u->region_start + hppa_extract_17 (insn) + 8); + } + if (u && u->HP_UX_interrupt_marker) return &hppa_hpux_sigtramp_frame_unwind; |