[PATCH 05/14] Support in linux-nat target.

Yao Qi
2012-05-03T13:13:06Z

gdb:

2012-04-12 Pedro Alves <pedro@codesourcery.com>

* linux-nat.c (linux_nat_is_non_stop_p): New.
(linux_nat_add_target): Install linux_nat_is_non_stop_p.
---
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 a96a73c..265d0b2 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -4912,6 +4912,12 @@ linux_nat_supports_non_stop (void)
return 1;
}

+static int
+linux_nat_is_non_stop_p (void)
+{
+ return 1;
+}
+
/* True if we want to support multi-process. To be removed when GDB
supports multi-exec. */

@@ -5227,6 +5233,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_is_non_stop_p = linux_nat_is_non_stop_p;
t->to_async = linux_nat_async;
t->to_terminal_inferior = linux_nat_terminal_inferior;
t->to_terminal_ours = linux_nat_terminal_ours;
--
1.7.0.4