gdbserver/qXfer::threads, prepare_to_access_memory=>target_pause_all
authorPedro Alves <pedro@palves.net>
Tue, 29 Mar 2022 11:57:17 +0000 (12:57 +0100)
committerPedro Alves <pedro@palves.net>
Thu, 14 Apr 2022 19:21:11 +0000 (20:21 +0100)
commit330d63093c562a4b221835832c5e4f767dc623c3
tree7cb6c98e4368442fe7a3e7a047c35150218b2dfa
parent1a7c41d5ece7d0d1aa77d8019ee46f03181854fa
gdbserver/qXfer::threads, prepare_to_access_memory=>target_pause_all

handle_qxfer_threads_proper needs to pause all threads even if the
target can read memory when threads are running, so use
target_pause_all instead, which is what the Linux implementation of
prepare_to_access_memory uses.  (Only Linux implements this hook.)

A following patch will make the Linux backend be able to access memory
when threads are running, and thus will also make
prepare_to_access_memory do nothing, which would cause testsuite
regressions without this change.

Change-Id: I127fec7246b7c45b60dfa7341e781606bf54b5da
gdbserver/server.cc