* symmisc.c (dump_symtab): Switch the current language to

the language of the symtab we are dumping only if the symtab's
	language is neither language_auto nor language_unknown.

	* coffread.c (coff_symtab_read): Set language_minimal as the
	language for the "_globals_" pseudo-file.
This commit is contained in:
Eli Zaretskii
2009-05-23 09:26:06 +00:00
parent 65b02341cc
commit 969107c54a
3 changed files with 27 additions and 6 deletions

View File

@@ -758,6 +758,11 @@ coff_symtab_read (long symtab_offset, unsigned int nsyms,
coff_end_symtab (objfile);
coff_start_symtab ("_globals_");
/* coff_start_symtab will set the language of this symtab to
language_unknown, since such a ``file name'' is not
recognized. Override that with the minimal language to
allow printing values in this symtab. */
current_subfile->language = language_minimal;
complete_symtab ("_globals_", 0, 0);
/* done with all files, everything from here on out is globals */
}