summaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-10-17 18:49:46 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-10-17 18:49:46 +0000
commit31401e24be886bdf460f115f7804c69aa118e5b6 (patch)
tree7d442d89ec0effc965c0f4cee1cbedea48c12897 /gdb/symtab.h
parentcbca720518e5efd7761e29a995944ad1c8535ff4 (diff)
downloadgdb-31401e24be886bdf460f115f7804c69aa118e5b6.tar.gz
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.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index be1a7461064..a4032f8ec5e 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -1238,6 +1238,7 @@ extern struct cleanup *make_cleanup_free_search_symbols (struct symbol_search
const. */
extern void set_main_name (const char *name);
extern /*const */ char *main_name (void);
+extern enum language language_of_main;
/* Check global symbols in objfile. */
struct symbol *lookup_global_symbol_from_objfile (const struct objfile *objfile,