From: Joel Brobecker <brobecker@adacore.com>
To: gdb-patches@sourceware.org
Subject: Re: [RFA/solib-svr4] use AT_BASE auxiliary entry to compute load base address
Date: Mon, 17 Sep 2007 19:42:00 -0000 [thread overview]
Message-ID: <20070917194213.GA3882@adacore.com> (raw)
In-Reply-To: <20070916193558.GA27177@caradoc.them.org>
> 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
next prev parent reply other threads:[~2007-09-17 19:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-12 21:18 Joel Brobecker
2007-09-13 1:02 ` Joel Brobecker
2007-09-16 19:36 ` Daniel Jacobowitz
2007-09-17 19:42 ` Joel Brobecker [this message]
2007-09-17 19:49 ` Daniel Jacobowitz
2008-04-17 15:29 ` Ulrich Weigand
2008-04-17 17:48 ` Daniel Jacobowitz
2008-04-17 21:45 ` Ulrich Weigand
2008-04-17 22:32 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070917194213.GA3882@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox