From dd78685836dcecb25b85b2166b2b5c04b54cdd14 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 13 Jul 2010 20:52:52 +0000 Subject: * 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) : Make result const. --- gdb/symtab.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/symtab.h') diff --git a/gdb/symtab.h b/gdb/symtab.h index 5f676bf..62e9ce4 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1136,7 +1136,7 @@ extern char **make_source_files_completion_list (char *, char *); int matching_obj_sections (struct obj_section *, struct obj_section *); -extern char *find_main_filename (void); +extern const char *find_main_filename (void); extern struct symtab *find_line_symtab (struct symtab *, int, int *, int *); @@ -1149,7 +1149,7 @@ extern void skip_prologue_sal (struct symtab_and_line *); extern void clear_symtab_users (void); -extern enum language deduce_language_from_filename (char *); +extern enum language deduce_language_from_filename (const char *); /* symtab.c */ -- cgit v1.1