[patch/rfa] Handle unwinding through export stubs on hpux
John David Anglin
dave@hiauly1.hia.nrc.ca
Mon May 17 18:46:00 GMT 2004
+ if (gdbarch_osabi (gdbarch) == GDB_OSABI_HPUX_ELF
+ || gdbarch_osabi (gdbarch) == GDB_OSABI_HPUX_SOM)
+ {
+ /* HPUX uses export stubs in function calls; the export stub clobbers
+ the return value of the caller, and, later restores it from the
+ stack. */
+ u = find_unwind_entry (frame_pc_unwind (next_frame));
+
+ if (u && u->stub_unwind.stub_type == EXPORT)
+ {
+ info->saved_regs[HPPA_PCOQ_HEAD_REGNUM].addr = info->base - 24;
I don't believe that the 64-bit HP-UX runtime uses export stubs which
clobber the return value of the caller. This is only true for the SOM
runtime.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
More information about the Gdb-patches
mailing list