This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC/RFA] Deal with -g1 generated DWARF2 debug info
> Date: Sun, 4 Dec 2005 13:12:41 -0800
> From: Jim Blandy <jimb@red-bean.com>
>
> On 12/4/05, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:
> > a void function. Indeed the debug info generated by -g1 for malloc
> > looks like:
> >
> > $ readelf -wi /usr/lib/libc.so.38.4:
> > ...
> > <1><af59>: Abbrev Number: 2 (DW_TAG_subprogram)
> > DW_AT_name : (indirect string, offset: 0x6484): imalloc
> > DW_AT_decl_file : 1
> > DW_AT_decl_line : 1123
> > DW_AT_low_pc : 0x67ca0
> > DW_AT_high_pc : 0x67d9f
> > DW_AT_frame_base : 1 byte block: 57 (DW_OP_reg7)
> > ...
>
> That says "imalloc"; is that really what you meant to quote?
Oops sorry, the entry for malloc isn't really different though:
<1><afc1>: Abbrev Number: 3 (DW_TAG_subprogram)
DW_AT_external : 1
DW_AT_name : (indirect string, offset: 0x6485): malloc
DW_AT_decl_file : 1
DW_AT_decl_line : 1762
DW_AT_low_pc : 0x68250
DW_AT_high_pc : 0x682ff
DW_AT_frame_base : 1 byte block: 57 (DW_OP_reg7)
Mark