Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Lee <backrev@yahoo.com>
Cc: gdb@sources.redhat.com
Subject: Re: preserving gdb symbols
Date: Thu, 14 Sep 2006 17:53:00 -0000	[thread overview]
Message-ID: <20060914175350.GA24096@nevyn.them.org> (raw)
In-Reply-To: <20060914174909.56742.qmail@web55610.mail.re4.yahoo.com>

On Thu, Sep 14, 2006 at 10:49:09AM -0700, Lee wrote:
> Currently i have to use a script to read all of the
> loaded statements, parse it, and pipe that out and tar
> up all of the needed libraries so that I can get
> matching binaries for shared libraries and have a
> useful core to read.

Just try "info shared".  It'll work even if you don't have the
libraries physically present (well, on most systems).

> So my question is first of all is there any way I can
> just save all of the symbol information I have in
> memory, so that I can reload it when reading the core
> on a different machine.   

No.  Save the files instead.

> I modified solib_read_symbols.  I changed it so that
> if you added a switch on gdb's command line then each
> time a call was made to solib_read_symbols I then kept
> the file.  In my case I used the command interface to
> exec tar.  A person could tack them on the end of the
> core file, or create your own package in whatever
> format is generally acceptable.  Would a solution of
> anything like this be acceptable to get back into the
> gdb source ?

I think you could relatively easily do this as a wrapper script
that invoked GDB.  We already ship one such (for gcore); if
you wanted to add another, I think that would be reasonable.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2006-09-14 17:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-14 15:04 AMD64 Hardware Watchpoints Giles Hall
2006-09-14 15:10 ` Daniel Jacobowitz
2006-09-14 17:49   ` preserving gdb symbols Lee
2006-09-14 17:53     ` Daniel Jacobowitz [this message]
2006-09-14 18:24       ` Michael Snyder
2006-09-14 18:25         ` Daniel Jacobowitz
2006-09-14 18:06     ` Michael Snyder
2006-09-15 19:56   ` AMD64 Hardware Watchpoints Giles Hall
2006-09-15 20:00 preserving gdb symbols Steve Eaton

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=20060914175350.GA24096@nevyn.them.org \
    --to=drow@false.org \
    --cc=backrev@yahoo.com \
    --cc=gdb@sources.redhat.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