diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/linux-nat.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2eef059..577e9b0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2011-11-10 Pedro Alves <pedro@codesourcery.com> + * 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 <pedro@codesourcery.com> + * target.c (target_waitstatus_to_string): Handle TARGET_WAITKIND_NO_RESUMED. diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 1e125f4..d54f303 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 (); |