diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:35:26 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:45:58 -0700 |
commit | 2a9a2795ff9602bd1f03b9e55b4c15de3241d384 (patch) | |
tree | 61e7f6622ea0ccafe330861e7dcdafeca899d5a1 /gdb/target.c | |
parent | 4ab76ea3fb057381852a9d3b7ac9270fec8e7a7c (diff) | |
download | binutils-2a9a2795ff9602bd1f03b9e55b4c15de3241d384.zip binutils-2a9a2795ff9602bd1f03b9e55b4c15de3241d384.tar.gz binutils-2a9a2795ff9602bd1f03b9e55b4c15de3241d384.tar.bz2 |
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.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/target.c b/gdb/target.c index 7ffe2df..0fc4e86 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; } |