aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-11-10 20:17:52 +0000
committerPedro Alves <palves@redhat.com>2011-11-10 20:17:52 +0000
commit6953d2240a9e4d4f5d6b8369c2367377b7d2ef47 (patch)
tree131a9045b80129be3f1d8baabf2337be7590f4bb /gdb/linux-nat.c
parent0c94aa73a07a46166a13271fef8cf9e049c6804a (diff)
downloadgdb-6953d2240a9e4d4f5d6b8369c2367377b7d2ef47.zip
gdb-6953d2240a9e4d4f5d6b8369c2367377b7d2ef47.tar.gz
gdb-6953d2240a9e4d4f5d6b8369c2367377b7d2ef47.tar.bz2
2011-11-10 Pedro Alves <pedro@codesourcery.com>
gdb/ * linux-nat.c (linux_nat_wait): Don't force waking up the event loop when returning a TARGET_WAITKIND_NO_RESUMED.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c3
1 files changed, 2 insertions, 1 deletions
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 ();