diff options
author | Tom Tromey <tom@tromey.com> | 2019-01-06 13:26:22 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-01-14 17:32:24 -0700 |
commit | 05be00a884850c5fe314004c9b91609f480308f6 (patch) | |
tree | c1bcd493fc0f23541b2033a42148435f54f13686 /gdb | |
parent | 491adecac48c5960fe29582f5046c015ff92c211 (diff) | |
download | fsf-binutils-gdb-05be00a884850c5fe314004c9b91609f480308f6.zip fsf-binutils-gdb-05be00a884850c5fe314004c9b91609f480308f6.tar.gz fsf-binutils-gdb-05be00a884850c5fe314004c9b91609f480308f6.tar.bz2 |
Constify remote_console_output
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/remote.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5f5a2d1..842536d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/remote.c b/gdb/remote.c index c40f926..6b5870a 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -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) { |