aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/tracepoint.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-03-09 11:58:09 +0000
committerYao Qi <yao.qi@linaro.org>2015-03-20 17:38:59 +0000
commiteef49a3d1a7e2ff70e142c7c7fd748f4625c05c9 (patch)
tree86b1e5ecbe16268c185657d98a7842b81299bf36 /gdb/gdbserver/tracepoint.c
parentb2333d22e0ead2d6f354c69760b6c6e0db161f02 (diff)
downloadgdb-eef49a3d1a7e2ff70e142c7c7fd748f4625c05c9.zip
gdb-eef49a3d1a7e2ff70e142c7c7fd748f4625c05c9.tar.gz
gdb-eef49a3d1a7e2ff70e142c7c7fd748f4625c05c9.tar.bz2
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 <palves@redhat.com> * tracepoint.c (cmd_qtstatus): Make "str" const.
Diffstat (limited to 'gdb/gdbserver/tracepoint.c')
-rw-r--r--gdb/gdbserver/tracepoint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c
index 42b27c0..3ce9580 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