From c1342859dc02fd57e013ef544037a9ead4f23f60 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sun, 29 Oct 2017 01:13:33 -0400 Subject: [PATCH] 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. --- gdb/ChangeLog | 4 ++++ gdb/xtensa-xtregs.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.30.2