aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdbserver/ChangeLog4
-rw-r--r--gdbserver/gdbreplay.cc4
2 files changed, 6 insertions, 2 deletions
diff --git a/gdbserver/ChangeLog b/gdbserver/ChangeLog
index def4049..e98c439 100644
--- a/gdbserver/ChangeLog
+++ b/gdbserver/ChangeLog
@@ -1,3 +1,7 @@
+2021-02-12 Tom Tromey <tromey@adacore.com>
+
+ * gdbreplay.cc (remote_open): Constify.
+
2021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
* Makefile.in (UNDO_GNULIB_CFLAGS): Disable
diff --git a/gdbserver/gdbreplay.cc b/gdbserver/gdbreplay.cc
index 438a6a6..1a53b98 100644
--- a/gdbserver/gdbreplay.cc
+++ b/gdbserver/gdbreplay.cc
@@ -151,9 +151,9 @@ remote_close (void)
NAME is the filename used for communication. */
static void
-remote_open (char *name)
+remote_open (const char *name)
{
- char *last_colon = strrchr (name, ':');
+ const char *last_colon = strrchr (name, ':');
if (last_colon == NULL)
{