Make find_thread_ptid lookup thread map instead of iterate
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 3 Dec 2019 20:19:35 +0000 (15:19 -0500)
committerLaurent Morichetti <laurent.morichetti@amd.com>
Thu, 23 Apr 2020 22:21:28 +0000 (15:21 -0700)
commit227c8c56e81aa9ee2afd45c859c8ae8592da05d6
tree9d24e55ca90010cd6824032af2bdebd239155d17
parent9cd8b2435ba3c1898f516ef74dbbba18c84bc04c
Make find_thread_ptid lookup thread map instead of iterate

Now that inferior threads are stored in a map, change the
find_thread_ptid function to look up a thread using std::map::find,
instead of iterating on all of the inferior's threads.

Change-Id: I0041380775fa2bfffdb6e78847d980015b670708
gdb/thread.c
This page took 0.024997 seconds and 4 git commands to generate.