From eef49a3d1a7e2ff70e142c7c7fd748f4625c05c9 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 9 Mar 2015 11:58:09 +0000 Subject: [PATCH] constify gdbserver/tracepoint.c gdb/gdbserver/tracepoint.c:3647:7: error: invalid conversion from 'const char*' to 'char*' [-fpermissive] gdb/gdbserver/tracepoint.c:3652:7: error: invalid conversion from 'const char*' to 'char*' [-fpermissive] gdb/gdbserver/tracepoint.c:3657:7: error: invalid conversion from 'const char*' to 'char*' [-fpermissive] gdb/gdbserver 2015-03-20 Pedro Alves * tracepoint.c (cmd_qtstatus): Make "str" const. --- gdb/gdbserver/ChangeLog | 4 ++++ gdb/gdbserver/tracepoint.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 1572bcb21d0..c41ca3814a6 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2015-03-20 Pedro Alves + + * tracepoint.c (cmd_qtstatus): Make "str" const. + 2015-03-20 Pedro Alves * server.c (handle_general_set): Make "req_str" const. diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c index 42b27c072e0..3ce958066f7 100644 --- a/gdb/gdbserver/tracepoint.c +++ b/gdb/gdbserver/tracepoint.c @@ -3615,7 +3615,8 @@ static void cmd_qtstatus (char *packet) { char *stop_reason_rsp = NULL; - char *buf1, *buf2, *buf3, *str; + char *buf1, *buf2, *buf3; + const char *str; int slen; /* Translate the plain text of the notes back into hex for -- 2.30.2