This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Fix build failure in xcoffread.c


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9a1e3f003122c97d6e1822c472bcd37f59fb1a74

commit 9a1e3f003122c97d6e1822c472bcd37f59fb1a74
Author: Tom Tromey <tom@tromey.com>
Date:   Fri Oct 21 14:09:57 2016 -0600

    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.

Diff:
---
 gdb/ChangeLog   | 4 ++++
 gdb/xcoffread.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 104e3cb..1f94dc6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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>
 
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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]