aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2016-10-21 14:09:57 -0600
committerTom Tromey <tom@tromey.com>2016-10-21 14:10:39 -0600
commit9a1e3f003122c97d6e1822c472bcd37f59fb1a74 (patch)
tree5a7116c49f0adfe40f935266086b468af6f416bd /gdb/xcoffread.c
parentb5cefccad8bdeecaa3d0c548e32881466e021cb4 (diff)
downloadgdb-9a1e3f003122c97d6e1822c472bcd37f59fb1a74.zip
gdb-9a1e3f003122c97d6e1822c472bcd37f59fb1a74.tar.gz
gdb-9a1e3f003122c97d6e1822c472bcd37f59fb1a74.tar.bz2
Fix build failure in xcoffread.c
This changes read_xcoff_symtab to be const-correct. This fixes a build failure. 2016-10-21 Tom Tromey <tom@tromey.com> * xcoffread.c (read_xcoff_symtab): Make "filestring" const.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r--gdb/xcoffread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 02c1e5a..9ceefa0 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -1026,7 +1026,7 @@ read_xcoff_symtab (struct objfile *objfile, struct partial_symtab *pst)
union internal_auxent fcn_aux_saved = main_aux;
struct context_stack *newobj;
- char *filestring = pst->filename; /* Name of the current file. */
+ const char *filestring = pst->filename; /* Name of the current file. */
const char *last_csect_name; /* Last seen csect's name. */