diff options
author | Pedro Alves <palves@redhat.com> | 2015-03-09 11:58:08 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2015-03-20 17:38:54 +0000 |
commit | b2333d22e0ead2d6f354c69760b6c6e0db161f02 (patch) | |
tree | 31c5b3f944f2cdcb82df16f6a92da3b552c46210 /gdb/gdbserver | |
parent | 53e780858180511b194438c87d2f3a1c68804f06 (diff) | |
download | gdb-b2333d22e0ead2d6f354c69760b6c6e0db161f02.zip gdb-b2333d22e0ead2d6f354c69760b6c6e0db161f02.tar.gz gdb-b2333d22e0ead2d6f354c69760b6c6e0db161f02.tar.bz2 |
constify gdbserver/server.c
gdb/gdbserver/
2015-03-20 Pedro Alves <palves@redhat.com>
* server.c (handle_general_set): Make "req_str" const.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/server.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index cbd199b..1572bcb 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2015-03-20 Pedro Alves <palves@redhat.com> + + * server.c (handle_general_set): Make "req_str" const. + 2015-03-19 Pedro Alves <palves@redhat.com> * linux-low.c (linux_resume_one_lwp): Rename to ... diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 08dbb60..96b31b8 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -591,7 +591,7 @@ handle_general_set (char *own_buf) { char *mode = own_buf + 9; int req = -1; - char *req_str; + const char *req_str; if (strcmp (mode, "0") == 0) req = 0; |