aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/linux-nat.c3
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 ();