[Dwarf-discuss] dwarf information for mutiple statements at thesame line.

Daniel Jacobowitz drow
Mon Jul 17 00:14:09 GMT 2006


On Fri, Jul 14, 2006 at 12:53:33PM -0700, Chris Quenelle wrote:
> 
> >I can see how this scheme would be useful for macros, but does it offer
> >anything that the combination of DW_TAG_inlined_subroutine,
> >DW_AT_call_file, et cetera don't for inlined functions?  Or is it just
> >a different model that accomplishes roughly the same thing?
> 
> Using DW_TAG_inlined_subroutine requires that you specify the
> instruction range for the inlined routine using a location
> list and DW_AT_ranges.  This is very inefficient compared the
> encoding the same information in the line table.

Hmm... that's true.  I wouldn't be averse to supporting an alternative
representation in the GNU tools, if there's interest in adding same
to DWARF.

-- 
Daniel Jacobowitz
CodeSourcery





More information about the Dwarf-discuss mailing list