forked from Imagelibrary/binutils-gdb
gdb/
Fix the `stopped language detection' testcase for gcc-4.5. * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN. * symfile.c (set_initial_language): Move variable filename to a more inner block. Prefer LANGUAGE_OF_MAIN. * symtab.c (language_of_main): New variable. (set_main_name): Always reset LANGUAGE_OF_MAIN. * symtab.h (language_of_main): New declaration.
This commit is contained in:
@@ -8880,7 +8880,13 @@ read_partial_die (struct partial_die_info *part_die,
|
||||
practice. */
|
||||
if (DW_UNSND (&attr) == DW_CC_program
|
||||
&& cu->language == language_fortran)
|
||||
set_main_name (part_die->name);
|
||||
{
|
||||
set_main_name (part_die->name);
|
||||
|
||||
/* As this DIE has a static linkage the name would be difficult
|
||||
to look up later. */
|
||||
language_of_main = language_fortran;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user