make language_of_main static
authorTom Tromey <tromey@redhat.com>
Tue, 31 Dec 2013 03:05:34 +0000 (20:05 -0700)
committerTom Tromey <tromey@redhat.com>
Wed, 15 Jan 2014 19:06:04 +0000 (12:06 -0700)
commit9e6c82ad4f55d0ff125721b94fa2191f1cc1000a
tree12ef5dcf38f7ae24931ee1f2cf541cb4dc476775
parent6ef55de768d4ab9065bc92aa00d828212c4af4f0
make language_of_main static

This makes the global language_of_main static.  Now it can be set only
via a new argument to set_main_name.

2014-01-15  Tom Tromey  <tromey@redhat.com>

* dbxread.c (process_one_symbol): Update.
* dwarf2read.c (read_partial_die): Update.
* symfile.c (set_initial_language): Call main_language.
* symtab.c (language_of_main): Now static.
(set_main_name): Add 'lang' parameter.
(find_main_name): Update.
(main_language): New function.
(symtab_observer_executable_changed): Update.
* symtab.h (set_main_name): Update.
(language_of_main): Remove.
(main_language): Declare.
gdb/ChangeLog
gdb/dbxread.c
gdb/dwarf2read.c
gdb/symfile.c
gdb/symtab.c
gdb/symtab.h