From: Daniel Jacobowitz <drow@false.org>
To: slyph@alum.mit.edu
Cc: gdb@sources.redhat.com
Subject: Re: info shar vs. /proc/*/maps
Date: Thu, 17 Mar 2005 03:47:00 -0000 [thread overview]
Message-ID: <20050317034725.GA1672@nevyn.them.org> (raw)
In-Reply-To: <4238E773.4030806@october29.net>
On Wed, Mar 16, 2005 at 09:12:03PM -0500, Michael L. Artz wrote:
> Why is the data returned by an 'info shar' different from /proc/*/maps?
> I like to use /proc/*/maps to calculate the breakpoint address in my
> shared library, which I can do by adding the offset within the file to
> the library base load address.
>
> I'm using all the default packages from Fedora Core 3, but I don't think
> that matters, as I've seen the same behavior on several x86 Linux machines.
GDB is reporting the load address of the .text section, not the
read-execute segment.
--
Daniel Jacobowitz
CodeSourcery, LLC
prev parent reply other threads:[~2005-03-17 3:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-17 2:13 Michael L. Artz
2005-03-17 3:47 ` Daniel Jacobowitz [this message]
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=20050317034725.GA1672@nevyn.them.org \
--to=drow@false.org \
--cc=gdb@sources.redhat.com \
--cc=slyph@alum.mit.edu \
/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