Add target_ops argument to to_supports_non_stop

2014-02-19  Tom Tromey  <tromey@redhat.com>

	* target.h (struct target_ops) <to_supports_non_stop>: Add
	argument.
	* target.c (find_default_supports_non_stop): Add argument.
	(target_supports_non_stop): Add argument.
	(find_default_supports_non_stop): Add 'self' argument.
	* remote.c (remote_supports_non_stop): Add 'self' argument.
	* linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
This commit is contained in:
Tom Tromey 2013-12-17 21:35:26 -07:00
parent 4ab76ea3fb
commit 2a9a2795ff
5 changed files with 16 additions and 6 deletions

View file

@ -1,3 +1,13 @@
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_supports_non_stop>: Add
argument.
* target.c (find_default_supports_non_stop): Add argument.
(target_supports_non_stop): Add argument.
(find_default_supports_non_stop): Add 'self' argument.
* remote.c (remote_supports_non_stop): Add 'self' argument.
* linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_log_command>: Add argument.

View file

@ -4554,7 +4554,7 @@ linux_nat_can_async_p (struct target_ops *ops)
}
static int
linux_nat_supports_non_stop (void)
linux_nat_supports_non_stop (struct target_ops *self)
{
return 1;
}

View file

@ -10225,7 +10225,7 @@ remote_can_execute_reverse (void)
}
static int
remote_supports_non_stop (void)
remote_supports_non_stop (struct target_ops *self)
{
return 1;
}

View file

@ -3212,13 +3212,13 @@ find_default_is_async_p (struct target_ops *ignore)
}
static int
find_default_supports_non_stop (void)
find_default_supports_non_stop (struct target_ops *self)
{
struct target_ops *t;
t = find_default_run_target (NULL);
if (t && t->to_supports_non_stop)
return (t->to_supports_non_stop) ();
return (t->to_supports_non_stop) (t);
return 0;
}
@ -3229,7 +3229,7 @@ target_supports_non_stop (void)
for (t = &current_target; t != NULL; t = t->beneath)
if (t->to_supports_non_stop)
return t->to_supports_non_stop ();
return t->to_supports_non_stop (t);
return 0;
}

View file

@ -545,7 +545,7 @@ struct target_ops
TARGET_DEFAULT_FUNC (find_default_is_async_p);
void (*to_async) (struct target_ops *, async_callback_ftype *, void *)
TARGET_DEFAULT_NORETURN (tcomplain ());
int (*to_supports_non_stop) (void);
int (*to_supports_non_stop) (struct target_ops *);
/* find_memory_regions support method for gcore */
int (*to_find_memory_regions) (find_memory_region_ftype func, void *data);
/* make_corefile_notes support method for gcore */