From: Matt Rice <ratmice@gmail.com>
To: "Amker.Cheng" <amker.cheng@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: cross debug glibc loader problem
Date: Thu, 11 Feb 2010 20:59:00 -0000 [thread overview]
Message-ID: <8ba6bed41002111259g745df3eq9b87986a5efcb0cb@mail.gmail.com> (raw)
In-Reply-To: <e8b251c81002101912u416fa925re950ffd69f2acde2@mail.gmail.com>
On Wed, Feb 10, 2010 at 7:12 PM, Amker.Cheng <amker.cheng@gmail.com> wrote:
> On Thu, Feb 11, 2010 at 3:45 AM, Matt Rice <ratmice@gmail.com> wrote:
>> On Wed, Feb 10, 2010 at 4:09 AM, Amker.Cheng <amker.cheng@gmail.com> wrote:
>
>>
>> I would try it out with gdb from cvs, and if that doesn't work
>> investigate Jan Kratochvil's recent PIE: series of threads on the
>> gdb-patches list (at least some of which have been integrated), as I
>> am lead to believe from the first thread in the series that those
>> patches covered debugging ld.so.
>>
> Thanks, but I trid gdb-7.0.1 in two ways, both facing the same problem:
Yeah, I don't think 7.0.1 is recent enough to contain Jan's patches
gdb seems to be moving at quite the pace these days
> 1 : cross debug using gdb-7.0.1;
> 2 : native debug using gdb-7.0.1, which was built for and running
> under mipsel-linux;
>
> gdb always complains about "Cannot access memory at address 0x32a14"
>
> Maybe I've missed something important when following instruction at
> http://sources.redhat.com/glibc/wiki/Debugging/Loader_Debugging
I tried the same on x86_64 a while back, and had the same issues I
spoke with the author of this documentation, he couldn't remember the
version of gdb used and said that he had possibly patched it,
I believe that with a properly working gdb capable of debugging ld.so
this documentation is sound and will prove helpful to you.
but to get gdb capable of debugging ld.so, you'll currently have to
try out cvs, and if that doesn't work, researching Jan's PIE patches
is your best bet.
as in the first mail in the thread he mentions the various cases of
ld.so debugging.
http://sourceware.org/ml/gdb-patches/2009-11/msg00167.html
(note that these threads are split across months which if i recall the
list archives handle less than gracefully)
sorry i'm being real vague here, but this is a large patch series
which has undergone recent progress, and i'm not really aware of the
current status. But in these cases the best way to ensure that a
future gdb release works how you need it is to try out current
developments.
next prev parent reply other threads:[~2010-02-11 20:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-10 12:09 Amker.Cheng
2010-02-10 19:45 ` Matt Rice
2010-02-11 3:12 ` Amker.Cheng
2010-02-11 20:59 ` Matt Rice [this message]
2010-02-11 22:02 ` Jan Kratochvil
2010-02-21 9:48 ` Amker.Cheng
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=8ba6bed41002111259g745df3eq9b87986a5efcb0cb@mail.gmail.com \
--to=ratmice@gmail.com \
--cc=amker.cheng@gmail.com \
--cc=gdb@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