gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 17 Oct 2010 18:49:47 +0000 (18:49 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 17 Oct 2010 18:49:47 +0000 (18:49 +0000)
commit01f8c46dda6579913074a1d04eca0ad7fc437f47
treea0dfa003d324672c6b0f0cbd95c2d1c27bfc6368
parent8aeb23f3648c6ef10c5715e30f04563d1cc28709
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.
gdb/ChangeLog
gdb/dwarf2read.c
gdb/symfile.c
gdb/symtab.c
gdb/symtab.h