From mboxrd@z Thu Jan 1 00:00:00 1970 From: "John David Anglin" To: gdb-patches@sources.redhat.com Cc: randolph@tausq.org, cagney@gnu.org Subject: Re: [patch/rfa] Handle unwinding through export stubs on hpux Date: Mon, 17 May 2004 18:46:00 -0000 Message-id: <200405171846.i4HIkNmn006792@hiauly1.hia.nrc.ca> X-SW-Source: 2004-05/msg00500.html + 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)