One patch added to GDB:
Use DW_CC_program to determine the “main program” in Fortran.
This patch makes GDB check for DW_AT_calling_convention value in order to determine the “main program” in Fortran programs. Since the current DWARF specification doesn’t have a specific field for determining the source-level entry point, GDB checks now if the calling convention is DW_CC_program when debugging Fortran programs. Patch here.