[Dwarf-discuss] DWARF Issue 050808.2&body=Re: <ahref=http://dwarf.freestandards.org/ShowIssue.php

jeff nelson jeff.nelson
Thu Feb 23 23:11:17 GMT 2006


On Thu, 2006-02-23 at 20:52 -0800, Jim Blandy wrote:

> ...the compiler can't emit a
> DW_TAG_entry_point child of the 'main' method as required by the
> proposal, since the entry point hasn't been chosen yet.


This is a good point. I know of at least one COBOL implementation where
any number of routines could be the program "main". The linker is the
one that makes the choice.


> I'd prefer adding a new attribute, DW_AT_program_entry_point, whose
> value would be a reference to the die representing the program's main
> function.  This would be an attribute of some DW_TAG_compile_unit die.
>  It wouldn't necessarily need to refer to a die in that compilation
> unit, so gcj could emit a dummy Dwarf compilation unit just to contain
> the DW_AT_program_entry_point attribute at link time. 


I like this suggestion the best so far.

-Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freestandards.org/pipermail/dwarf-discuss/attachments/20060224/3e061995/attachment.htm



More information about the Dwarf-discuss mailing list