aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-07-13 20:52:52 +0000
committerTom Tromey <tromey@redhat.com>2010-07-13 20:52:52 +0000
commitdd78685836dcecb25b85b2166b2b5c04b54cdd14 (patch)
tree40e6283bbd9d66cc25accb88778721396c8972dd /gdb/dwarf2read.c
parent9291a0cd80ce4d50cbe531a872b7b00e3e67e3c9 (diff)
downloadgdb-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/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index f390ef5..0a8190d 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -2150,7 +2150,7 @@ dw2_expand_symtabs_with_filename (struct objfile *objfile,
}
}
-static char *
+static const char *
dw2_find_symbol_file (struct objfile *objfile, const char *name)
{
struct dwarf2_per_cu_data *cu;
@@ -2176,8 +2176,7 @@ dw2_find_symbol_file (struct objfile *objfile, const char *name)
if (!cu->v.quick->lines)
return NULL;
- return (char *) cu->v.quick->file_names[cu->v.quick->lines->num_file_names
- - 1];
+ return cu->v.quick->file_names[cu->v.quick->lines->num_file_names - 1];
}
static void