Problems while debugging fortran

Jim Blandy jimb@codesourcery.com
Thu Oct 25 17:05:00 GMT 2007


Daniel Jacobowitz <drow at false.org> writes:
> On Thu, Oct 25, 2007 at 08:30:38AM -0700, Jim Blandy wrote:
>> This comment isn't right.  The Fortran main program expects to have
>> its arguments passed to it differently than other subroutines or
>> functions; that's what DW_AT_calling_convention is meant to express.
>> The comment should say something like:
>> 
>>   /* DWARF doesn't provide a way to identify a program's entry point.
>>      However, the Fortran main program receives its arguments via a
>>      special calling convention; we look for that to recognize the
>>      program's entry point.  */
>
> Have we concluded that this is true?  If so, is there any reason we
> should not make gfortran generate this attribute?  And if so, why
> not GNAT or GCJ too?

We've been discussing this on the DWARF committee.  That attribute is
definitely not meant to be used to recognize the Fortran main program.
There's a proposal for an attribute that really does what we want, but
it's been sent back for revision.



More information about the Gdb-patches mailing list