From: Martin Runge <martunge@googlemail.com>
To: Pedro Alves <palves@redhat.com>, gdb@sourceware.org
Cc: John Gilmore <gnu@toad.com>,
Jan Kratochvil <jan.kratochvil@redhat.com>,
Raphael Zulliger <zulliger@indel.ch>
Subject: Re: Ensure correct symbol-file when attaching to a (remote) process
Date: Sat, 12 Jan 2013 10:59:00 -0000 [thread overview]
Message-ID: <CAF4KFGpOGi1EFvLQageJrTNjXW593yaa=iUQQBo435K8GkHJ3A@mail.gmail.com> (raw)
In-Reply-To: <50E474E3.7050605@redhat.com>
I would really like to see such a feature in gdb, too. Our projects
are Linux based, but the problem remains the same. We tried a self
made patch that compared the most important sections of host and
target binaries as a whole. Our projects are quite large (~260 MB
stripped binaries) and that patch caused extra 30-60 seconds startup
time for debugging, so we removed it again.
in gdb 7.3 I see a similar feature already build in. I see warnings like this:
warning: the debug information found in "/lib/libname.so" does not
match "/lib/libname.so" (CRC mismatch).
It shows up for all DSOs, that do not match between host and target,
e.g. if the solib search path is not set correctly and gdb on the host
looks at the host's library instead of the one that matches the
target's.
Who does this compare to your patch?
2013/1/2 Pedro Alves <palves@redhat.com>:
> On 12/21/2012 07:17 PM, John Gilmore wrote:
>> The best you can do in an automated way is to check the areas
>> of memory that are intended to contain instructions and read-only
>> data.
>
> For bare metal targets, that's often good enough, and GDB does have
> support that built in:
>
> (gdb) help compare-sections
> Compare section data on target to the exec file.
> Argument is a single section name (default: all loaded sections).
>
> A build id check would really be ideal.
>
> --
> Pedro Alves
>
next prev parent reply other threads:[~2013-01-12 10:59 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-21 6:05 Raphael Zulliger
2012-12-21 16:11 ` Jan Kratochvil
2012-12-21 18:17 ` John Gilmore
2013-01-02 17:57 ` Pedro Alves
2013-01-12 10:59 ` Martin Runge [this message]
[not found] ` <50EA78FB.3040609@indel.ch>
2013-01-14 18:57 ` Pedro Alves
2013-01-29 3:18 ` Raphael Zulliger
2013-01-29 3:51 ` Raphael Zulliger
2013-02-06 18:47 ` Tom Tromey
2012-12-21 21:12 ` Aleksandar Ristovski
2012-12-22 0:38 ` John Gilmore
2012-12-22 2:54 ` Aleksandar Ristovski
2012-12-24 20:02 ` Aleksandar Ristovski
2012-12-26 0:47 ` John Gilmore
2012-12-27 20:13 ` Aleksandar Ristovski
2013-01-29 3:18 ` Raphael Zulliger
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='CAF4KFGpOGi1EFvLQageJrTNjXW593yaa=iUQQBo435K8GkHJ3A@mail.gmail.com' \
--to=martunge@googlemail.com \
--cc=gdb@sourceware.org \
--cc=gnu@toad.com \
--cc=jan.kratochvil@redhat.com \
--cc=palves@redhat.com \
--cc=zulliger@indel.ch \
/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