This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Chicken-or-egg problem with shared libraries
On Tue, May 23, 2006 at 02:56:17PM -0700, PAUL GILLIAM wrote:
> bkpt_at_symbol:
> warning (_("Unable to find dynamic linker breakpoint function.\n"
> "GDB will be unable to debug shared library initializers\n"
> "and track explicitly loaded dynamic code."));
>
> I believe this is executed because although it finds
> "_dl_debug_state" (now that Alan made his change to BFD), on a ppc64
> system, that symbol is not in the a code section and so it is rejected:
>
> > sym_addr = bfd_lookup_symbol (tmp_bfd, *bkpt_namep, SEC_CODE);
> ^^^^^^^^^
I understood from Alan that GDB ought to actually deal with the
function descriptor here and go from that to the code address; or is
that wrong?
[I'm clueless for function descriptor platforms.]
--
Daniel Jacobowitz
CodeSourcery