From a30bf1f15c51b82a0134713bc44175cda296d3ae Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 6 Jun 2014 13:19:53 -0600 Subject: constify to_rcmd This makes the "command" parameter of the to_rcmd target method const. 2014-06-16 Tom Tromey * target.h (struct target_ops) : Make "command" const. * target.c (debug_to_rcmd, default_rcmd): Update. * target-delegates.c: Rebuild. * remote.c (remote_rcmd): Update. * monitor.c (monitor_rcmd): Update. --- gdb/monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/monitor.c') diff --git a/gdb/monitor.c b/gdb/monitor.c index 25742ac..4a57d5e 100644 --- a/gdb/monitor.c +++ b/gdb/monitor.c @@ -2282,7 +2282,7 @@ monitor_stop (struct target_ops *self, ptid_t ptid) ourseleves here cause of a nasty echo. */ static void -monitor_rcmd (struct target_ops *self, char *command, +monitor_rcmd (struct target_ops *self, const char *command, struct ui_file *outbuf) { char *p; -- cgit v1.1