From 72b9f47f1ebefa7618abb0c142811af5b5b823e4 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 1 Oct 2010 20:26:11 +0000 Subject: * 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) : 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. --- gdb/psympriv.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/psympriv.h') diff --git a/gdb/psympriv.h b/gdb/psympriv.h index e0ea839..b5205fd2 100644 --- a/gdb/psympriv.h +++ b/gdb/psympriv.h @@ -73,7 +73,7 @@ struct partial_symtab /* Name of the source file which this partial_symtab defines */ - char *filename; + const char *filename; /* Full path of the source file. NULL if not known. */ @@ -81,7 +81,7 @@ struct partial_symtab /* Directory in which it was compiled, or NULL if we don't know. */ - char *dirname; + const char *dirname; /* Information about the object file from which symbols should be read. */ @@ -156,7 +156,7 @@ extern void sort_pst_symbols (struct partial_symtab *); /* Add any kind of symbol to a psymbol_allocation_list. */ extern const -struct partial_symbol *add_psymbol_to_list (char *, int, int, domain_enum, +struct partial_symbol *add_psymbol_to_list (const char *, int, int, domain_enum, enum address_class, struct psymbol_allocation_list *, long, CORE_ADDR, -- cgit v1.1