aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-11-25 07:32:35 -0700
committerTom Tromey <tromey@redhat.com>2013-12-06 12:13:31 -0700
commit21ea9eece76627d5f71f6a755ea3fc7b2916db72 (patch)
tree76e07a841a52279da8f1a5c6d2885a50d82c2bbe /gdb/symfile.c
parent399d6e3089c03b378d259ea4a8779e2a759129ca (diff)
downloadgdb-21ea9eece76627d5f71f6a755ea3fc7b2916db72.zip
gdb-21ea9eece76627d5f71f6a755ea3fc7b2916db72.tar.gz
gdb-21ea9eece76627d5f71f6a755ea3fc7b2916db72.tar.bz2
make symtab::filename const
This makes symtab::filename const and removes a newly unnecessary cast. 2013-12-06 Tom Tromey <tromey@redhat.com> * symfile.c (allocate_symtab): Remove cast. * symtab.h (struct symtab) <filename>: Now const.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 59d0583..71f6b3e 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -2883,8 +2883,8 @@ allocate_symtab (const char *filename, struct objfile *objfile)
symtab = (struct symtab *)
obstack_alloc (&objfile->objfile_obstack, sizeof (struct symtab));
memset (symtab, 0, sizeof (*symtab));
- symtab->filename = (char *) bcache (filename, strlen (filename) + 1,
- objfile->per_bfd->filename_cache);
+ symtab->filename = bcache (filename, strlen (filename) + 1,
+ objfile->per_bfd->filename_cache);
symtab->fullname = NULL;
symtab->language = deduce_language_from_filename (filename);
symtab->debugformat = "unknown";