Multi-target support
[deliverable/binutils-gdb.git] / gdb / python / py-threadevent.c
index 0fcf3e1f8d7e19b22f8c7e2b692e9c286fa2d1d3..3be86b71daa3327e8920926928f119732eb5da64 100644 (file)
@@ -27,7 +27,9 @@ py_get_event_thread (ptid_t ptid)
 {
   if (non_stop)
     {
-      thread_info *thread = find_thread_ptid (ptid);
+      thread_info *thread
+       = find_thread_ptid (current_inferior ()->process_target (),
+                           ptid);
       if (thread != nullptr)
        return thread_to_thread_object (thread);
       PyErr_SetString (PyExc_RuntimeError, "Could not find event thread");
This page took 0.030824 seconds and 4 git commands to generate.