diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2024-11-06 13:39:48 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2024-11-08 09:16:23 -0500 |
commit | 3470a0e144df6c01f8479fa649f43aa907936e7e (patch) | |
tree | 2b66e9a0acc8136adfd1d8756e73b9bd33a5f97d /gdb/python/py-progspace.c | |
parent | 6672ccafd90865b9a8916caa3a2f9a0687c301d2 (diff) | |
download | binutils-3470a0e144df6c01f8479fa649f43aa907936e7e.zip binutils-3470a0e144df6c01f8479fa649f43aa907936e7e.tar.gz binutils-3470a0e144df6c01f8479fa649f43aa907936e7e.tar.bz2 |
gdbserver: remove for_each_thread(pid, func)
Remove this overload, prefer to use `process_info::for_each_thread`. In
many instances, the `process_info` is already available, so this saves a
map lookup. In other instances, add the `process_info` lookup at the
call site.
In `linux-arm-low.cc` and `win32-i386-low.cc`, use `current_process ()`
instead of `current_thread->id.pid ()`. I presume that if
`current_process ()` and `current_thread` don't match, it's a bug
orthogonal to this change.
Change-Id: I751ed497cb1f313cf937b35125151bee9316fc51
Reviewed-By: Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Diffstat (limited to 'gdb/python/py-progspace.c')
0 files changed, 0 insertions, 0 deletions