]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Constify remote_console_output
authorTom Tromey <tom@tromey.com>
Sun, 6 Jan 2019 20:26:22 +0000 (13:26 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 15 Jan 2019 00:32:24 +0000 (17:32 -0700)
This constifies the parameter to remote_console_output.

gdb/ChangeLog
2019-01-14  Tom Tromey  <tom@tromey.com>

* remote.c (remote_console_output): Make parameter const.

gdb/ChangeLog
gdb/remote.c

index 5f5a2d124582398494ed2ecb4823b3805b525c4d..842536d3528292db47b68673707c563a29e643dd 100644 (file)
@@ -1,3 +1,7 @@
+2019-01-14  Tom Tromey  <tom@tromey.com>
+
+       * remote.c (remote_console_output): Make parameter const.
+
 2019-01-14  Tom Tromey  <tom@tromey.com>
 
        * target-debug.h (target_debug_print_signals): Constify.
index c40f9263764b76800abb30a46d8678083af4a4f2..6b5870a70a4bc5d8fd0d78c1f15f5865c9ccc771 100644 (file)
@@ -1024,7 +1024,7 @@ static void remote_async_inferior_event_handler (gdb_client_data);
 
 static bool remote_read_description_p (struct target_ops *target);
 
-static void remote_console_output (char *msg);
+static void remote_console_output (const char *msg);
 
 static void remote_btrace_reset (remote_state *rs);
 
@@ -6799,9 +6799,9 @@ remote_target::terminal_ours ()
 }
 
 static void
-remote_console_output (char *msg)
+remote_console_output (const char *msg)
 {
-  char *p;
+  const char *p;
 
   for (p = msg; p[0] && p[1]; p += 2)
     {