This is the mail archive of the gdb@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: Problems while debugging fortran


> Here's a revised comment that may explain what's going on better:
> 
>   /* DWARF doesn't provide a way to identify a program's source-level
>      entry point.  DW_AT_calling_convention attributes are only meant
>      to describe functions' calling conventions.
> 
>      However, because it's a necessary piece of information in
>      Fortran, and because DW_CC_program is the only piece of debugging
>      information whose definition refers to a 'main program' at all,
>      several compilers have begun marking Fortran main programs with
>      DW_CC_program --- even when those functions use the standard
>      calling conventions.
> 
>      So until DWARF specifies a way to provide this information and
>      compilers pick up the new representation, we'll support this
>      practice.  */

I think that's a great comment. Let's use that one.

-- 
Joel


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