gdbserver/linux-low.cc: Ignore event_ptid if TARGET_WAITKIND_IGNORE
[binutils-gdb.git] / gdbserver / linux-low.cc
index 7a4f8758ae96ce6f96f5837db433b2989f61d16a..ca2b7aa1e1be4b885518368105ed1011c526c4f0 100644 (file)
@@ -3643,7 +3643,6 @@ linux_process_target::wait (ptid_t ptid,
       event_ptid = wait_1 (ptid, ourstatus, target_options);
     }
   while ((target_options & TARGET_WNOHANG) == 0
-        && event_ptid == null_ptid
         && ourstatus->kind () == TARGET_WAITKIND_IGNORE);
 
   /* If at least one stop was reported, there may be more.  A single