aboutsummaryrefslogtreecommitdiff
path: root/gdb/coffread.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2009-05-23 09:26:06 +0000
committerEli Zaretskii <eliz@gnu.org>2009-05-23 09:26:06 +0000
commit969107c54a602bf35d13a6290e77eb1ccf16bbb2 (patch)
treefadd51078cd022bdbf12e8ea9ebdaa15883347f0 /gdb/coffread.c
parent65b02341cc8e36be5467123913457f3dd0fb6754 (diff)
downloadgdb-969107c54a602bf35d13a6290e77eb1ccf16bbb2.zip
gdb-969107c54a602bf35d13a6290e77eb1ccf16bbb2.tar.gz
gdb-969107c54a602bf35d13a6290e77eb1ccf16bbb2.tar.bz2
* 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.
Diffstat (limited to 'gdb/coffread.c')
-rw-r--r--gdb/coffread.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 6059d68..c5b5722 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -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 */
}