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/target-delegates.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/target-delegates.c') diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c index e6fbb44..522d52b 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -631,7 +631,7 @@ tdefault_stop (struct target_ops *self, ptid_t arg1) } static void -delegate_rcmd (struct target_ops *self, char *arg1, struct ui_file *arg2) +delegate_rcmd (struct target_ops *self, const char *arg1, struct ui_file *arg2) { self = self->beneath; self->to_rcmd (self, arg1, arg2); -- cgit v1.1