Fix build failure in xcoffread.c
authorTom Tromey <tom@tromey.com>
Fri, 21 Oct 2016 20:09:57 +0000 (14:09 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 21 Oct 2016 20:10:39 +0000 (14:10 -0600)
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.

gdb/ChangeLog
gdb/xcoffread.c

index 104e3cb0d62d61667230ccefa374460e58c86dc3..1f94dc6384e7292d6991a87e70114205c48d456c 100644 (file)
@@ -1,3 +1,7 @@
+2016-10-21  Tom Tromey  <tom@tromey.com>
+
+       * xcoffread.c (read_xcoff_symtab): Make "filestring" const.
+
 2016-10-21  Sangamesh Mallayya  <sangamesh.swamy@in.ibm.com>
            Ulrich Weigand  <uweigand@de.ibm.com>
 
index 02c1e5a39ce6a3562d8217412885194829c936e8..9ceefa00c4257c9b324c11d5972ec054c2bab7ef 100644 (file)
@@ -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.  */