This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: info shar vs. /proc/*/maps


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]