diff options
author | Tom Tromey <tromey@redhat.com> | 2013-11-25 07:32:35 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-12-06 12:13:31 -0700 |
commit | 21ea9eece76627d5f71f6a755ea3fc7b2916db72 (patch) | |
tree | 76e07a841a52279da8f1a5c6d2885a50d82c2bbe /gdb/symtab.h | |
parent | 399d6e3089c03b378d259ea4a8779e2a759129ca (diff) | |
download | gdb-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/symtab.h')
-rw-r--r-- | gdb/symtab.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index 7cc6667..821479a 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -875,7 +875,7 @@ struct symtab /* Name of this source file. This pointer is never NULL. */ - char *filename; + const char *filename; /* Directory in which it was compiled, or NULL if we don't know. */ |