Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <dan@codesourcery.com>
To: ineya ineya <ineyaa@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: reconstructing process memory map from core
Date: Tue, 09 Feb 2010 22:08:00 -0000	[thread overview]
Message-ID: <20100209220815.GA14898@caradoc.them.org> (raw)
In-Reply-To: <7b8592a1002091400y5b901e90s8cb26f75c057ffab@mail.gmail.com>

On Tue, Feb 09, 2010 at 11:00:34PM +0100, ineya ineya wrote:
> But it doesn't work, gdb is trying to read something from heap, and if
> this fails, no symbols are loaded. So I was wondering why gdb needs to
> access heap? Or more generally how are symbols loaded / how is the
> process memory map reconstructed from core file?

The dynamic linker maintains a linked list of loaded shared
libraries, in the heap.

> I thought all that is needed is to have:
> - list of external function - in .dynsym I guess
> - .got from runtime

Neither of these are useful for determining shared library load
addresses.  .dynsym is not useful at all; it is read-only so we can
recover it from the executable.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2010-02-09 22:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-09 22:00 ineya ineya
2010-02-09 22:08 ` Daniel Jacobowitz [this message]
2010-02-10  7:06   ` ineya ineya
2010-02-10  2:41 ` Hui Zhu

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=20100209220815.GA14898@caradoc.them.org \
    --to=dan@codesourcery.com \
    --cc=gdb@sourceware.org \
    --cc=ineyaa@gmail.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