This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: how to make gdb happy with my linkmap
- From: Doug Evans <dje at google dot com>
- To: Mathieu Lacage <mathieu dot lacage at gmail dot com>, gdb at sourceware dot org
- Date: Wed, 7 Jan 2009 08:45:58 -0800
- Subject: Re: how to make gdb happy with my linkmap
- 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>
On Mon, Jan 5, 2009 at 9:13 AM, Daniel Jacobowitz <drow@false.org> 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".