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 | |
parent | 4ab76ea3fb057381852a9d3b7ac9270fec8e7a7c (diff) | |
download | gdb-2a9a2795ff9602bd1f03b9e55b4c15de3241d384.zip gdb-2a9a2795ff9602bd1f03b9e55b4c15de3241d384.tar.gz gdb-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.
-rw-r--r-- | gdb/ChangeLog | 10 | ||||
-rw-r--r-- | gdb/linux-nat.c | 2 | ||||
-rw-r--r-- | gdb/remote.c | 2 | ||||
-rw-r--r-- | gdb/target.c | 6 | ||||
-rw-r--r-- | gdb/target.h | 2 |
5 files changed, 16 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 958441f..327e68c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,15 @@ 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. (target_log_command): Add argument. * serial.h (serial_log_command): Add 'self' argument. diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 9652692..cb8b3bd 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 0a80502..d2a4d52 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 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; } diff --git a/gdb/target.h b/gdb/target.h index ceb2f04..c3c117a 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 */ |