diff options
author | Stephan Rohr <stephan.rohr@intel.com> | 2024-10-22 07:01:19 -0700 |
---|---|---|
committer | Stephan Rohr <stephan.rohr@intel.com> | 2024-11-07 02:50:48 -0800 |
commit | c26f8fbe794cf2fb4c4a1fdefeae32137d2bd303 (patch) | |
tree | cd84afa0b66ec282de7f7f8f8a736ea6e5df98d2 /gdb/python/py-cmd.c | |
parent | 9f77b3aa0bfcd07015a47aef210fdc1157a4f08f (diff) | |
download | binutils-c26f8fbe794cf2fb4c4a1fdefeae32137d2bd303.zip binutils-c26f8fbe794cf2fb4c4a1fdefeae32137d2bd303.tar.gz binutils-c26f8fbe794cf2fb4c4a1fdefeae32137d2bd303.tar.bz2 |
gdbserver: add process specific thread list and map
Replace the servers global thread list with a process specific thread
list and a ptid -> thread map similar to 'inferior::ptid_thread_map' on
GDB side. Optimize the 'find_thread' and 'find_thread_ptid' functions
to use std::unordered_map::find for faster lookup of threads without
iterating over all processes and threads, if applicable. This becomes
important when debugging applications with a large thread count, e.g.,
in the context of GPU debugging.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/python/py-cmd.c')
0 files changed, 0 insertions, 0 deletions