aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppa-tdep.c
diff options
context:
space:
mode:
authorRandolph Chung <tausq@debian.org>2004-12-08 01:48:03 +0000
committerRandolph Chung <tausq@debian.org>2004-12-08 01:48:03 +0000
commitf77a2124d69481a53bfc5ddc7945de81f1dec428 (patch)
tree1e3f1b2b62d30cfaa1d9c4b5fd36f87353213fc4 /gdb/hppa-tdep.c
parentf1b38a579122b37f86f25c35e23eb75b72978bd1 (diff)
downloadgdb-f77a2124d69481a53bfc5ddc7945de81f1dec428.zip
gdb-f77a2124d69481a53bfc5ddc7945de81f1dec428.tar.gz
gdb-f77a2124d69481a53bfc5ddc7945de81f1dec428.tar.bz2
2004-12-07 Randolph Chung <tausq@debian.org>
* hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method. * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function. (hppa_hpux_init_abi) Set unwind_adjust_stub method. * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method if defined.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r--gdb/hppa-tdep.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index ae7c519..6be4ad5 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -1905,6 +1905,19 @@ hppa_frame_cache (struct frame_info *next_frame, void **this_cache)
}
}
+ {
+ struct gdbarch *gdbarch;
+ struct gdbarch_tdep *tdep;
+
+ gdbarch = get_frame_arch (next_frame);
+ tdep = gdbarch_tdep (gdbarch);
+
+ if (tdep->unwind_adjust_stub)
+ {
+ tdep->unwind_adjust_stub (next_frame, cache->base, cache->saved_regs);
+ }
+ }
+
if (hppa_debug)
fprintf_unfiltered (gdb_stdlog, "base=0x%s }",
paddr_nz (((struct hppa_frame_cache *)*this_cache)->base));