gdb: make find_thread_ptid an inferior method
Make find_thread_ptid (the overload that takes an inferior) a method of struct inferior. Change-Id: Ie5b9fa623ff35aa7ddb45e2805254fc8e83c9cd4 Reviewed-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
committed by
Simon Marchi
parent
91385d13a8
commit
3c8af02fa0
@@ -28,8 +28,7 @@ py_get_event_thread (ptid_t ptid)
|
||||
if (non_stop)
|
||||
{
|
||||
thread_info *thread
|
||||
= find_thread_ptid (current_inferior ()->process_target (),
|
||||
ptid);
|
||||
= current_inferior ()->find_thread (ptid);
|
||||
if (thread != nullptr)
|
||||
return thread_to_thread_object (thread);
|
||||
PyErr_SetString (PyExc_RuntimeError, "Could not find event thread");
|
||||
|
||||
Reference in New Issue
Block a user