This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Remove find_inferior usage for thread_search
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Sat, 28 Oct 2017 02:56:02 -0400
- Subject: [binutils-gdb] Remove find_inferior usage for thread_search
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT bac608e7e11fa83a648c0980883f810ebd1874b1 ***
Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: bac608e7e11fa83a648c0980883f810ebd1874b1
Remove find_inferior usage for thread_search
Replace it with for_each_thread. While at it, we can inline the
callback code. One little change is that I am using the
prev_general_thread variable instead of current_gen_ptid, since they
should have the same value.
gdb/gdbserver/ChangeLog:
* target.c (struct thread_search): Remove.
(thread_search_callback): Remove.
(prepare_to_access_memory): Use for_each_thread instead of
find_inferior. Inline code from thread_search_callback.