------- Comment #7 from jan dot kratochvil at redhat dot com 2010-04-20 09:14 ------- Created an attachment (id=20436) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20436&action=view) Preliminary GDB patch.
Tobias, could you add DW_AT_MIPS_linkage name? You say in Comment 3 the debugger cannot guess the linkage name from DW_AT_namespace hierarchy as it is not standardized across Fortran compilers. If DW_AT_external is true the GDB patch ignores DW_AT_location and relies on the ELF symbols which would work. It should IMHO follow Roland's Re: Cross-CU C++ DIE references vs. mangling http://sourceware.org/ml/archer/2010-q1/msg00092.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40040