constify to_disconnect

This constifies an parameter of to_disconnect and updates
target_disconnect as well.

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

	* target.h (struct target_ops) <to_disconnect>: Make parameter
	const.
	(target_disconnect): Update.
	* target.c (target_disconnect): Make "args" const.
	* target-delegates.c: Rebuild.
	* remote.c (remote_disconnect): Update.
	* record.h (record_disconnect): Update.
	* record.c (record_disconnect): Update.
	* inf-child.c (inf_child_disconnect): Update.
This commit is contained in:
Tom Tromey 2014-06-06 13:26:53 -06:00
parent a30bf1f15c
commit fee354eeef
8 changed files with 21 additions and 9 deletions

View file

@ -130,7 +130,7 @@ record_unpush (struct target_ops *t)
/* See record.h. */
void
record_disconnect (struct target_ops *t, char *args, int from_tty)
record_disconnect (struct target_ops *t, const char *args, int from_tty)
{
gdb_assert (t->to_stratum == record_stratum);