This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
info shar vs. /proc/*/maps
- From: "Michael L. Artz" <dragon at october29 dot net>
- To: gdb at sources dot redhat dot com
- Date: Wed, 16 Mar 2005 21:12:03 -0500
- Subject: info shar vs. /proc/*/maps
- Reply-to: slyph at alum dot mit dot edu
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.
-Mike