]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdbserver/ChangeLog
gdbserver: Remove duplicate functions to find any thread of process
authorSimon Marchi <simon.marchi@ericsson.com>
Fri, 15 Sep 2017 12:53:07 +0000 (14:53 +0200)
committerSimon Marchi <simon.marchi@ericsson.com>
Fri, 15 Sep 2017 12:53:20 +0000 (14:53 +0200)
commit785922a559529420ce9b11342d7abe6ad32b3595
tree29852cf6dff0066ee4c2128e57f5059a4159d146
parent8d20070632b608587f372cf2d36ead339487e49c
gdbserver: Remove duplicate functions to find any thread of process

We have about 6 functions/callbacks to find_inferior meant to find a
thread that belongs to a given pid.  Remove all but
find_any_thread_of_pid and replace their uses with
find_any_thread_of_pid.

gdb/gdbserver/ChangeLog:

* server.c (first_thread_of): Remove.
(process_serial_event): Replace usage of first_thread_of with
find_any_thread_of_pid.
* tracepoint.c (same_process_p): Remove.
(gdb_agent_about_to_close): Replace usage of same_process_p with
find_any_thread_of_pid.
* linux-x86-low.c (same_process_callback): Remove.
(x86_arch_setup_process_callback): Replace usage of
same_process_callback with find_any_thread_of_pid.
* thread-db.c (any_thread_of): Remove.
(switch_to_process): Replace usage of any_thread_of with
find_any_thread_of_pid.
* inferiors.c (thread_pid_matches_callback): Remove.
(find_thread_process): Adjust to use find_any_thread_of_pid.
gdb/gdbserver/ChangeLog
gdb/gdbserver/inferiors.c
gdb/gdbserver/linux-x86-low.c
gdb/gdbserver/server.c
gdb/gdbserver/thread-db.c
gdb/gdbserver/tracepoint.c