This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/commit/dwarf] Create partial symbols for nested subprograms


> > GNU C has nested functions.  Standard C does not.  I wrote a simple
> > test case and compiled it with GCC.  The resulting DWARF (I appended a
> > snippet) does not nest functions here .. but perhaps this is a bug in
> > GCC, I couldn't say.
> 
> Doesn't it?
> 
> >  <1><4a>: Abbrev Number: 2 (DW_TAG_subprogram)
> >  <2><69>: Abbrev Number: 3 (DW_TAG_subprogram)

Yes, I confirm it does. The readelf output can be confusing the first
time. That nesting level on the left is hard to notice...

-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]