From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9559 invoked by alias); 7 Jan 2009 16:46:10 -0000 Received: (qmail 9546 invoked by uid 22791); 7 Jan 2009 16:46:09 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Jan 2009 16:46:04 +0000 Received: from spaceape8.eur.corp.google.com (spaceape8.eur.corp.google.com [172.28.16.142]) by smtp-out.google.com with ESMTP id n07Gk1sh022043 for ; Wed, 7 Jan 2009 08:46:02 -0800 Received: from rv-out-0506.google.com (rvfb25.prod.google.com [10.140.179.25]) by spaceape8.eur.corp.google.com with ESMTP id n07Gjwpk026986 for ; Wed, 7 Jan 2009 08:45:59 -0800 Received: by rv-out-0506.google.com with SMTP id b25so13652874rvf.45 for ; Wed, 07 Jan 2009 08:45:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.139.6 with SMTP id m6mr11573853rvd.242.1231346758575; Wed, 07 Jan 2009 08:45:58 -0800 (PST) In-Reply-To: <20090105171315.GA31779@caradoc.them.org> References: <74fef6df0812181341x8ecdd31me028bd4d658384b1@mail.gmail.com> <20081218214854.GA7706@caradoc.them.org> <74fef6df0812181402n1debced5xbe3f402a3a34ecf2@mail.gmail.com> <20081218221005.GA9012@caradoc.them.org> <74fef6df0812260239o1f21e833t6464c9d41bedcdd1@mail.gmail.com> <20081226125329.GA12783@caradoc.them.org> <74fef6df0901050658g6c279a3ah321c7c6e30630475@mail.gmail.com> <20090105171315.GA31779@caradoc.them.org> Date: Wed, 07 Jan 2009 16:46:00 -0000 Message-ID: Subject: Re: how to make gdb happy with my linkmap From: Doug Evans To: Mathieu Lacage , gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-01/txt/msg00034.txt.bz2 On Mon, Jan 5, 2009 at 9:13 AM, Daniel Jacobowitz wrote: > On Mon, Jan 05, 2009 at 03:58:39PM +0100, Mathieu Lacage wrote: >> What I find weird is: >> 1) mathieu@mathieu-boulot:~/code/elf-loader$ readelf -s ./ldso |grep stage1 >> 225: 00000932 135 FUNC GLOBAL HIDDEN 6 stage1 >> mathieu@mathieu-boulot:~/code/elf-loader$ readelf -l ./ldso >> >> Elf file type is DYN (Shared object file) >> Entry point 0x932 >> There are 6 program headers, starting at offset 52 >> [...] >> >> i.e., stage1 is located at offset 0x932, and not 0x944 so, I can't >> figure out where the 0x944 displayed by gdb is coming from. > > That's prologue skipping; it's just walking past the frame setup. > This helps GDB to display function arguments correctly. For completeness' sake, to avoid prologue skipping one can do "b *stage1".