diff options
author | Tom Tromey <tromey@redhat.com> | 2010-10-01 20:26:11 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-10-01 20:26:11 +0000 |
commit | 72b9f47f1ebefa7618abb0c142811af5b5b823e4 (patch) | |
tree | a08f5ac64dba94ee992f0b007c2e1581de7ec237 /gdb/mdebugread.c | |
parent | 55e3947383a45ec03e48390775fbf2699e640ec5 (diff) | |
download | gdb-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/mdebugread.c')
-rw-r--r-- | gdb/mdebugread.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 0467816..5ce5db2 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -232,7 +232,7 @@ enum block_type { FUNCTION_BLOCK, NON_FUNCTION_BLOCK }; static struct block *new_block (enum block_type); -static struct symtab *new_symtab (char *, int, struct objfile *); +static struct symtab *new_symtab (const char *, int, struct objfile *); static struct linetable *new_linetable (int); @@ -248,7 +248,7 @@ static void sort_blocks (struct symtab *); static struct partial_symtab *new_psymtab (char *, struct objfile *); -static void psymtab_to_symtab_1 (struct partial_symtab *, char *); +static void psymtab_to_symtab_1 (struct partial_symtab *, const char *); static void add_block (struct block *, struct symtab *); @@ -3888,7 +3888,7 @@ mdebug_next_symbol_text (struct objfile *objfile) The flow of control and even the memory allocation differs. FIXME. */ static void -psymtab_to_symtab_1 (struct partial_symtab *pst, char *filename) +psymtab_to_symtab_1 (struct partial_symtab *pst, const char *filename) { bfd_size_type external_sym_size; bfd_size_type external_pdr_size; @@ -4671,7 +4671,7 @@ sort_blocks (struct symtab *s) linenumbers MAXLINES we'll put in it */ static struct symtab * -new_symtab (char *name, int maxlines, struct objfile *objfile) +new_symtab (const char *name, int maxlines, struct objfile *objfile) { struct symtab *s = allocate_symtab (name, objfile); |