From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1609 invoked by alias); 17 Mar 2005 03:47:36 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 1504 invoked from network); 17 Mar 2005 03:47:29 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 17 Mar 2005 03:47:29 -0000 Received: from drow by nevyn.them.org with local (Exim 4.44 #1 (Debian)) id 1DBlyn-0000RV-3i; Wed, 16 Mar 2005 22:47:25 -0500 Date: Thu, 17 Mar 2005 03:47:00 -0000 From: Daniel Jacobowitz To: slyph@alum.mit.edu Cc: gdb@sources.redhat.com Subject: Re: info shar vs. /proc/*/maps Message-ID: <20050317034725.GA1672@nevyn.them.org> Mail-Followup-To: slyph@alum.mit.edu, gdb@sources.redhat.com References: <4238E773.4030806@october29.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4238E773.4030806@october29.net> User-Agent: Mutt/1.5.6+20040907i X-SW-Source: 2005-03/txt/msg00162.txt.bz2 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