gdb: implement find_thread_ptid using inferior::thread_map
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 3 Dec 2019 20:19:35 +0000 (15:19 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 1 Jul 2020 00:01:10 +0000 (20:01 -0400)
commitff3ca435d94571fbfcfbe24e996e8e6010075911
treea09882e3180701dc3b74eeec0d9e2b73ab450aae
parentb930cab1bd17b71a6177f35b6511684213765b36
gdb: implement find_thread_ptid using inferior::thread_map

Now that non-exited 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: I2fa3b0eb48c3e267eabec75b6459da2826df2e3d
gdb/thread.c
This page took 0.024554 seconds and 4 git commands to generate.