aboutsummaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-10-01 20:26:11 +0000
committerTom Tromey <tromey@redhat.com>2010-10-01 20:26:11 +0000
commit72b9f47f1ebefa7618abb0c142811af5b5b823e4 (patch)
treea08f5ac64dba94ee992f0b007c2e1581de7ec237 /gdb/elfread.c
parent55e3947383a45ec03e48390775fbf2699e640ec5 (diff)
downloadgdb-72b9f47f1ebefa7618abb0c142811af5b5b823e4.zip
gdb-72b9f47f1ebefa7618abb0c142811af5b5b823e4.tar.gz
gdb-72b9f47f1ebefa7618abb0c142811af5b5b823e4.tar.bz2
* symfile.h (allocate_symtab): Update.
* symfile.c (allocate_symtab): Make 'filename' const. * psymtab.c (add_psymbol_to_bcache): Make 'name' const. (add_psymbol_to_list): Likewise. * psympriv.h (struct partial_symtab) <filename, dirname>: Now const. (add_psymbol_to_list): Update. * mdebugread.c (new_symtab): Make 'name' const. (psymtab_to_symtab_1): Make 'filename' const. * elfread.c (elfstab_offset_sections): Update. * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const. (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const. (psymtab_include_file_name): Update. * dbxread.c (find_stab_function_addr): Make 'filename' const. * buildsym.h (start_subfile): Update. * buildsym.c (start_subfile): Make arguments const.
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r--gdb/elfread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 4745f8e..270f93f 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -979,7 +979,7 @@ elf_symfile_init (struct objfile *objfile)
void
elfstab_offset_sections (struct objfile *objfile, struct partial_symtab *pst)
{
- char *filename = pst->filename;
+ const char *filename = pst->filename;
struct dbx_symfile_info *dbx = objfile->deprecated_sym_stab_info;
struct stab_section_info *maybe = dbx->stab_section_info;
struct stab_section_info *questionable = 0;