constify to_rcmd

This makes the "command" parameter of the to_rcmd target method const.

2014-06-16  Tom Tromey  <tromey@redhat.com>

	* target.h (struct target_ops) <to_rcmd>: 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.
This commit is contained in:
Tom Tromey
2014-06-06 13:19:53 -06:00
parent f4c51f600e
commit a30bf1f15c
6 changed files with 17 additions and 8 deletions

View File

@ -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;