xtensa-xtregs: Constify field
authorSimon Marchi <simon.marchi@ericsson.com>
Sun, 29 Oct 2017 05:13:33 +0000 (01:13 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Sun, 29 Oct 2017 05:13:33 +0000 (01:13 -0400)
Fix:

In file included from /home/emaisin/src/binutils-gdb/gdb/xtensa-linux-nat.c:46:0:
/home/emaisin/src/binutils-gdb/gdb/xtensa-xtregs.c:37:1: error: ISO C++ forbids converting a string constant to 'char*' [-Werror=write-strings]
 };
 ^

gdb/ChangeLog:

* xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.

gdb/ChangeLog
gdb/xtensa-xtregs.c

index 4583a78fe595ff7a569e9acdf5c01815e80edfde..d278841ad3913981c10acc636d0099f9d4b45df2 100644 (file)
@@ -1,3 +1,7 @@
+2017-10-29  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
+
 2017-10-28  Maksim Dzabraev  <dzabraew@gmail.com>
 
        PR python/21213
index 97f7f62d9cdcbf1182ea6626448f4349d4996f53..0d2808df09127379977377dc8d1d7ec65d0ad218 100644 (file)
@@ -25,7 +25,7 @@ typedef struct {
   int   size;
   int   coproc;
   int   dbnum;
-  char* name
+  const char* name
 ;} xtensa_regtable_t;
 
 #define XTENSA_ELF_XTREG_SIZE  4