forked from Imagelibrary/binutils-gdb
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
@@ -216,6 +216,18 @@ add_inferior (int pid)
|
||||
|
||||
/* See inferior.h. */
|
||||
|
||||
thread_info *
|
||||
inferior::find_thread (ptid_t ptid)
|
||||
{
|
||||
auto it = this->ptid_thread_map.find (ptid);
|
||||
if (it != this->ptid_thread_map.end ())
|
||||
return it->second;
|
||||
else
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
/* See inferior.h. */
|
||||
|
||||
void
|
||||
inferior::clear_thread_list (bool silent)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user