forked from Imagelibrary/binutils-gdb
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>
This commit is contained in:
@@ -116,10 +116,6 @@ thread_info *find_thread (ptid_t filter,
|
||||
|
||||
void for_each_thread (gdb::function_view<void (thread_info *)> func);
|
||||
|
||||
/* Like the above, but only consider threads with pid PID. */
|
||||
|
||||
void for_each_thread (int pid, gdb::function_view<void (thread_info *)> func);
|
||||
|
||||
/* Like the above, but only consider threads matching PTID. */
|
||||
|
||||
void for_each_thread
|
||||
|
||||
Reference in New Issue
Block a user