aboutsummaryrefslogtreecommitdiff
path: root/gdb/xtensa-xtregs.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2017-10-29 01:13:33 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2017-10-29 01:13:33 -0400
commitc1342859dc02fd57e013ef544037a9ead4f23f60 (patch)
tree8ad42f7fd7b3125132e7c156589f1d54e27d6c22 /gdb/xtensa-xtregs.c
parent692af2271947dee1918585c2fad36618a5d47d21 (diff)
downloadgdb-c1342859dc02fd57e013ef544037a9ead4f23f60.zip
gdb-c1342859dc02fd57e013ef544037a9ead4f23f60.tar.gz
gdb-c1342859dc02fd57e013ef544037a9ead4f23f60.tar.bz2
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) <name>: Constify.
Diffstat (limited to 'gdb/xtensa-xtregs.c')
-rw-r--r--gdb/xtensa-xtregs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/xtensa-xtregs.c b/gdb/xtensa-xtregs.c
index 97f7f62..0d2808d 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