From: Tom Tromey Date: Fri, 21 Oct 2016 20:09:57 +0000 (-0600) Subject: Fix build failure in xcoffread.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a1e3f003122c97d6e1822c472bcd37f59fb1a74;p=binutils-gdb.git 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 * xcoffread.c (read_xcoff_symtab): Make "filestring" const. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 104e3cb0d62..1f94dc6384e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2016-10-21 Tom Tromey + + * xcoffread.c (read_xcoff_symtab): Make "filestring" const. + 2016-10-21 Sangamesh Mallayya Ulrich Weigand diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 02c1e5a39ce..9ceefa00c42 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. */