From 6953d2240a9e4d4f5d6b8369c2367377b7d2ef47 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 10 Nov 2011 20:17:52 +0000 Subject: [PATCH] 2011-11-10 Pedro Alves gdb/ * linux-nat.c (linux_nat_wait): Don't force waking up the event loop when returning a TARGET_WAITKIND_NO_RESUMED. --- gdb/ChangeLog | 5 +++++ gdb/linux-nat.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2eef0592dcf..577e9b0c176 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-11-10 Pedro Alves + + * linux-nat.c (linux_nat_wait): Don't force waking up the event + loop when returning a TARGET_WAITKIND_NO_RESUMED. + 2011-11-10 Pedro Alves * target.c (target_waitstatus_to_string): Handle diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 1e125f4f7b6..d54f3031c36 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -3980,7 +3980,8 @@ linux_nat_wait (struct target_ops *ops, may be more. If we requested a specific lwp or process, also assume there may be more. */ if (target_can_async_p () - && (ourstatus->kind != TARGET_WAITKIND_IGNORE + && ((ourstatus->kind != TARGET_WAITKIND_IGNORE + && ourstatus->kind != TARGET_WAITKIND_NO_RESUMED) || !ptid_equal (ptid, minus_one_ptid))) async_file_mark (); -- 2.30.2