From 2a9a2795ff9602bd1f03b9e55b4c15de3241d384 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 17 Dec 2013 21:35:26 -0700 Subject: [PATCH] Add target_ops argument to to_supports_non_stop 2014-02-19 Tom Tromey * target.h (struct target_ops) : 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. --- gdb/ChangeLog | 10 ++++++++++ gdb/linux-nat.c | 2 +- gdb/remote.c | 2 +- gdb/target.c | 6 +++--- gdb/target.h | 2 +- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 958441fa80..327e68c8bc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,13 @@ +2014-02-19 Tom Tromey + + * target.h (struct target_ops) : 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 * target.h (struct target_ops) : Add argument. diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 9652692439..cb8b3bd83a 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -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; } diff --git a/gdb/remote.c b/gdb/remote.c index 0a80502aa4..d2a4d52aa8 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -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; } diff --git a/gdb/target.c b/gdb/target.c index 7ffe2df3eb..0fc4e869a1 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -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 = ¤t_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; } diff --git a/gdb/target.h b/gdb/target.h index ceb2f04ea0..c3c117a907 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -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 */ -- 2.34.1