aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-progspace.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2024-11-06 13:39:48 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2024-11-08 09:16:23 -0500
commit3470a0e144df6c01f8479fa649f43aa907936e7e (patch)
tree2b66e9a0acc8136adfd1d8756e73b9bd33a5f97d /gdb/python/py-progspace.c
parent6672ccafd90865b9a8916caa3a2f9a0687c301d2 (diff)
downloadbinutils-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