This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/solib-svr4] use AT_BASE auxiliary entry to compute load base address
> and did not find any loaded libraries or else did not find the
> interpreter in the list. That's strange and almost certainly
> indicates a bug that we should fix. The loader should have
> been in the list at that point. Maybe it has a different
> filename in the list than in .interp?
Hmmm, that does ring a bell. I think we discussed another symptom
of the same problem:
(gdb) start
Breakpoint 1 at 0x2d100: file a_test.adb, line 4.
Starting program: /[...]/a_test
warning: Temporarily disabling breakpoints for unloaded shared library "/usr/lib/ld.so.1"
(that was on gdb@ around Mar, 11th 2007)
> > I think that the problem is that we're computing the wrong base load
> > address in solib-svr4.c. As it turned out, there was a "TODO" hint
> > added by Daniel that suggested using the AT_BASE auxiliary entry.
> > The attached patch attempts to do that.
> >
> > 2007-09-12 Joel Brobecker <brobecker@adacore.com>
> >
> > * solib-svr4.c: Add include of "auxv.h".
> > (enable_break): Use the AT_BASE auxiliary entry if available.
> > * Makefile.in (solib-svr4.o): Update dependencies.
>
> This patch, independently, is a good idea and I'm glad you did it.
> It's OK.
Thanks. Checked in.
--
Joel