This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/rfa] Handle unwinding through export stubs on hpux
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gdb-patches at sources dot redhat dot com
- Cc: randolph at tausq dot org, cagney at gnu dot org
- Date: Mon, 17 May 2004 13:31:12 -0400 (EDT)
- Subject: Re: [patch/rfa] Handle unwinding through export stubs on hpux
+ 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)