diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-08-19 13:22:14 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-08-19 13:22:14 +0000 |
commit | 9908b56683c3fce81b58ff5ee888741790f516d0 (patch) | |
tree | 05b062f89b7a634c46c5830d54824e00df366c40 /gdb/linux-nat.c | |
parent | c6ebd6cf9956565b8b2c3e14a54dea6c467f48d4 (diff) | |
download | gdb-9908b56683c3fce81b58ff5ee888741790f516d0.zip gdb-9908b56683c3fce81b58ff5ee888741790f516d0.tar.gz gdb-9908b56683c3fce81b58ff5ee888741790f516d0.tar.bz2 |
Make sure target supports non-stop.
* infcmd.c (run_command_1, attach_command): If non-stop mode
is requested, verify the target supports it.
* linux-nat.c (linux_nat_supports_non_stop): New.
(linux_nat_add_target): Register the above.
* target.c (find_default_supports_non_stop)
(target_supports_non_stop): New.
(init_dummy_target): Register find_default_supports_non_stop.
* target.h (struct target_ops): New field to_supports_non_stop.
(target_supports_non_stop): New.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index b25104e..126f7dc 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -4018,6 +4018,12 @@ linux_nat_can_async_p (void) return linux_nat_async_mask_value; } +static int +linux_nat_supports_non_stop (void) +{ + return 1; +} + /* target_async_mask implementation. */ static int @@ -4374,6 +4380,7 @@ linux_nat_add_target (struct target_ops *t) t->to_can_async_p = linux_nat_can_async_p; t->to_is_async_p = linux_nat_is_async_p; + t->to_supports_non_stop = linux_nat_supports_non_stop; t->to_async = linux_nat_async; t->to_async_mask = linux_nat_async_mask; t->to_terminal_inferior = linux_nat_terminal_inferior; |