From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23777 invoked by alias); 17 Mar 2005 02:13:31 -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 21109 invoked from network); 17 Mar 2005 02:12:35 -0000 Received: from unknown (HELO rwcrmhc11.comcast.net) (204.127.198.35) by sourceware.org with SMTP; 17 Mar 2005 02:12:35 -0000 Received: from hades.october29.net (pcp0010364772pcs.woodln01.md.comcast.net[68.55.221.98]) by comcast.net (rwcrmhc11) with ESMTP id <2005031702123401300ee71ee>; Thu, 17 Mar 2005 02:12:34 +0000 Received: from [192.168.0.4] (astarte.october29.net [192.168.0.4]) by hades.october29.net (Postfix) with ESMTP id B066D813A for ; Thu, 17 Mar 2005 02:16:56 +0000 (GMT) Message-ID: <4238E773.4030806@october29.net> Date: Thu, 17 Mar 2005 02:13:00 -0000 From: "Michael L. Artz" Reply-To: slyph@alum.mit.edu User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: info shar vs. /proc/*/maps Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-03/txt/msg00161.txt.bz2 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