From: Paul Koning <pkoning@equallogic.com>
To: loa_gus@hotmail.com
Cc: drow@mvista.com, gdb@sources.redhat.com
Subject: Re: debugging core files from other machines with archived symbol files
Date: Tue, 19 Aug 2003 13:31:00 -0000 [thread overview]
Message-ID: <16194.9924.707536.389637@gargle.gargle.HOWL> (raw)
In-Reply-To: <BAY1-F1042H7ufgzqbP00005976@hotmail.com>
>>>>> "Erik" == Erik Gustafsson <loa_gus@hotmail.com> writes:
Erik> Hmm.. Isn't this something you want to be able to do? Seems to
Erik> me that everybody that is shipping software to customers would
Erik> like to be able to debug crash dumps from customer sites in a
Erik> simple way.
Erik> I'm not sure I understand on what level the problem is. Is this
Erik> a missing feature in GDB or missing information in the core
Erik> file?
I don't think there is a real issue in practice. Daniel briefly
stated the requirements -- you need to have a file system subtree
somewhere that has the same shape as the target system tree. That in
general isn't a big deal.
Given that, you simply point gdb to that subtree with
solib-absolute-prefix, and you're good to go.
For example, suppose your build procedure produces full (unstripped)
binaries in .../targetroot/usr/lib, .../targetroot/usr/bin, etc. Then
this gets the job done:
gdb .../targetroot/usr/bin/brokenapp
(gdb) set solib-absolute-prefix .../targetroot
(gdb) core customercorefile
GDB will find the relevant file names and the load addresses from data
stored in the corefile. Well, that depends on the OS; some don't do a
particularly good job. For example, you may discover, as I did, that
you can find text sections of libs but not data sections.
paul
next prev parent reply other threads:[~2003-08-19 13:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-19 13:21 Erik Gustafsson
2003-08-19 13:29 ` Daniel Jacobowitz
2003-08-19 13:31 ` Paul Koning [this message]
2003-08-19 21:36 ` Staffan Gustafsson
-- strict thread matches above, loose matches on Subject: below --
2003-08-19 11:25 Erik Gustafsson
2003-08-19 12:43 ` 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=16194.9924.707536.389637@gargle.gargle.HOWL \
--to=pkoning@equallogic.com \
--cc=drow@mvista.com \
--cc=gdb@sources.redhat.com \
--cc=loa_gus@hotmail.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).