From: Simon Marchi Date: Sun, 29 Oct 2017 05:13:33 +0000 (-0400) Subject: xtensa-xtregs: Constify field X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c1342859dc02fd57e013ef544037a9ead4f23f60;p=binutils-gdb.git xtensa-xtregs: Constify field 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) : Constify. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4583a78fe59..d278841ad39 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2017-10-29 Simon Marchi + + * xtensa-xtregs.c (xtensa_regtable_t) : Constify. + 2017-10-28 Maksim Dzabraev PR python/21213 diff --git a/gdb/xtensa-xtregs.c b/gdb/xtensa-xtregs.c index 97f7f62d9cd..0d2808df091 100644 --- a/gdb/xtensa-xtregs.c +++ b/gdb/xtensa-xtregs.c @@ -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