fix gdbserver/linux-low'c's pending status handling
[deliverable/binutils-gdb.git] / gdb / gdbserver / linux-low.c
index 1869857d59002b910b1ed45e6affcf14b977df0c..a6e1e3dce5f3b3c3b32a1e3ce1d95ad3c05ce360 100644 (file)
@@ -1288,9 +1288,8 @@ status_pending_p_callback (struct inferior_list_entry *entry, void *arg)
   ptid_t ptid = * (ptid_t *) arg;
 
   /* Check if we're only interested in events from a specific process
-     or its lwps.  */
-  if (!ptid_equal (minus_one_ptid, ptid)
-      && ptid_get_pid (ptid) != ptid_get_pid (thread->entry.id))
+     or a specific LWP.  */
+  if (!ptid_match (ptid_of (thread), ptid))
     return 0;
 
   if (lp->status_pending_p
This page took 0.02441 seconds and 4 git commands to generate.