Remove usage of find_thread when calling resume_status_pending_p
authorSimon Marchi <simon.marchi@ericsson.com>
Mon, 20 Nov 2017 03:23:26 +0000 (22:23 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 20 Nov 2017 03:23:27 +0000 (22:23 -0500)
commit25c28b4d153ced950cc8702aafb054d6f14f6a02
tree8612413a4fda1da50e49cde7bd838b4568cdf658
parent5fdda39248cc4a3311efbff3cf2350123d638232
Remove usage of find_thread when calling resume_status_pending_p

Replace with find_thread.  Instead of setting the flag in the callback,
make the callback return true/false, and check the result against NULL
in the caller.

gdb/gdbserver/ChangeLog:

* linux-low.c (resume_status_pending_p): Return bool, remove
flag_p argument.
(linux_resume): Use find_thread.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c