diff options
author | Tom Tromey <tromey@redhat.com> | 2010-07-13 20:52:52 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-07-13 20:52:52 +0000 |
commit | dd78685836dcecb25b85b2166b2b5c04b54cdd14 (patch) | |
tree | 40e6283bbd9d66cc25accb88778721396c8972dd /gdb/symfile.c | |
parent | 9291a0cd80ce4d50cbe531a872b7b00e3e67e3c9 (diff) | |
download | gdb-dd78685836dcecb25b85b2166b2b5c04b54cdd14.zip gdb-dd78685836dcecb25b85b2166b2b5c04b54cdd14.tar.gz gdb-dd78685836dcecb25b85b2166b2b5c04b54cdd14.tar.bz2 |
* symfile.c (set_initial_language): Update.
(deduce_language_from_filename): Argument type now const.
* symtab.h (find_main_filename): Update.
(deduce_language_from_filename): Update.
* symtab.c (find_main_filename): Make result const.
* dwarf2read.c (dw2_find_symbol_file): Change return type.
* psymtab.c (find_symbol_file_from_partial): Change return type.
* symfile.h (struct quick_symbol_functions) <find_symbol_file>:
Make result const.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r-- | gdb/symfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index af1b42c..babe9cf 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1538,7 +1538,7 @@ symbol_file_command (char *args, int from_tty) void set_initial_language (void) { - char *filename; + const char *filename; enum language lang = language_unknown; filename = find_main_filename (); @@ -2665,7 +2665,7 @@ init_filename_language_table (void) } enum language -deduce_language_from_filename (char *filename) +deduce_language_from_filename (const char *filename) { int i; char *cp; |