This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/hpux] SEGV when running program using dlopen
- From: Randolph Chung <randolph at tausq dot org>
- To: gdb-patches at sources dot redhat dot com, brobecker at adacore dot com
- Date: Wed, 15 Dec 2004 08:36:29 -0800
- Subject: Re: [RFA/hpux] SEGV when running program using dlopen
- Reply-to: Randolph Chung <randolph at tausq dot org>
> Unfortunately for us, that doesnt' work for __d_trap, as that symbol
> lives in crt0. So lookup_minimal_symbol_solib_trampoline never returns
> any match, and we end up stuck with the non-stub address.
>
> I replaced the above block by a simply ALL_MSYMBOLS loop that simply
> matches the msymbol name before checking for the associated stub type.
> That fixes the problem.
hrm, a question:
since we are already doing this in an ALL_OBJFILES loop, how come we
don't find the right symbol? i also notice that the problem only occurs
when you link in end.o; what does that do?
that kind of a loop exists elsewhere for the hpux target, so i want to
understand this a bit more.
thanks
randolph
--
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/