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.
This commit is contained in:
Randolph Chung
2004-12-08 01:48:03 +00:00
parent f1b38a5791
commit f77a2124d6
4 changed files with 70 additions and 0 deletions

View File

@@ -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));