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 5f5a2d1..842536d 100644 (file)
@@ -1,5 +1,9 @@
 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.
        * nto-procfs.c (nto_procfs_target::pass_signals): Update.
        * procfs.c (procfs_target::pass_signals): Update.
index c40f926..6b5870a 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)
     {