[Dwarf-discuss] DWARF Issue 050808.2&body=Re: <ahref=http://dwarf.freestandards.org/ShowIssue.php
Wu Zhou
woodzltc
Thu Feb 23 20:42:28 GMT 2006
Hi Daniel,
Thanks a lot for your effort. This looks more like a proposal. :-)
Regards
- Wu Zhou
On Thu, 23 Feb 2006, Daniel Berlin wrote:
> >
> > The mention of DW_TAG_entry_point along with your name suggests, in an
> > unclear fashion, that you believed it to be adequate. Perhaps this is
> > inaccurate, but that's at least how I read the proposal.
> Well, it would be, but we'd need a flag.
>
[snip]
>
> Okay, well, let me simply edit the "proposal" (which i agree is not a
> proposal)
>
> Most C compiler assume the main function to be "main". Other
> languages might have different names, or even allow it to have
> any name. If we have an entry to tell what is the main function
> in a program, it will let the debugger to present this to users
> in an intelligent way. Another debug-info format stabs could
> support this with N_MAIN stab type.
>
>
> Proposal:
>
> I propose we modify the definition of the DW_TAG_entry_point tag definition to state
> that it is also usable for specifying the main entry point to a program,
> not just fortran alternate entry points.
>
> In order to determine which of the DW_TAG_entry_point is the single main entry point to the program,
> a flag attribute DW_AT_is_main(or something suitably named) should be added to the allowed attributes for DW_TAG_entry_point.
>
> Alternatively, we could define it as the entry_point with DW_CC_program calling convention, and delete the text that says
> "The DW_CC_program value is intended to support Fortran main programs. It is not intended as a way of finding the entry address for the program."
>
More information about the Dwarf-discuss
mailing list