Remove usages of find_inferior calling not_stopped_callback
authorSimon Marchi <simon.marchi@polymtl.ca>
Sun, 3 Dec 2017 01:36:39 +0000 (20:36 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 3 Dec 2017 01:36:39 +0000 (20:36 -0500)
commita1385b7b881d2b129f8c26fac8ad20bc406a1a6d
tree7948ca98677b25633ace6a28b658916b28237ad5
parent454296a2c1f3afe163e49730b9b396ffdd985e1f
Remove usages of find_inferior calling not_stopped_callback

Replace with find_thread.  Writing a lambda inline in directly in the if
conditions would be a bit messy, so I chose to assign them to variables
instead.

gdb/gdbserver/ChangeLog:

* linux-low.c (not_stopped_callback): Return bool, take filter
argument directly.
(linux_wait_for_event_filtered): Use find_thread.
(linux_wait_1): Likewise.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c