Remove usage of find_inferior in regcache_invalidate_pid
authorSimon Marchi <simon.marchi@polymtl.ca>
Sun, 3 Dec 2017 01:36:32 +0000 (20:36 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 3 Dec 2017 01:36:32 +0000 (20:36 -0500)
commit634a3254c8fe1728c0202289afe594928094d860
treeac333b130739dfeae092fcea823b80d0784513b3
parent6d83e819df0c71868d04db46c60ff0ecf8cf1914
Remove usage of find_inferior in regcache_invalidate_pid

Replace with for_each_thread with pid filtering.
regcache_invalidate_one is not longer needed, as it was only used to
filter the pid.  We can call regcache_invalidate_thread directly.

gdb/gdbserver/ChangeLog:

* regcache.c (regcache_invalidate_one): Remove.
(regcache_invalidate_pid): use for_each_thread.
gdb/gdbserver/ChangeLog
gdb/gdbserver/regcache.c