This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: info shar vs. /proc/*/maps
- From: Daniel Jacobowitz <drow at false dot org>
- To: slyph at alum dot mit dot edu
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 16 Mar 2005 22:47:25 -0500
- Subject: Re: info shar vs. /proc/*/maps
- References: <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