gdbserver: Eliminate prepare_to_access_memory
authorPedro Alves <pedro@palves.net>
Tue, 29 Mar 2022 12:32:48 +0000 (13:32 +0100)
committerPedro Alves <pedro@palves.net>
Thu, 14 Apr 2022 19:22:56 +0000 (20:22 +0100)
commit8e347faf8f1556a0f1afc33bd53099ec5f2f8efe
tree09232d21bd7f8460d6fc9f399c4891d7f5c609de
parent421490af33bfbfe8a8429f0e43fb3e9f8727476e
gdbserver: Eliminate prepare_to_access_memory

Given:

 - The prepare_to_access_memory machinery was added for non-stop mode.

 - Only Linux supports non-stop.

 - Linux no longer needs the prepare_to_access_memory machinery.  In
   fact, after the previous patch,
   linux_process_target::prepare_to_access_memory became a nop.

Thus, prepare_to_access_memory can go away, simplifying core GDBserver
code.

Change-Id: I93ac8bfe66bd61c3d1c4a0e7d419335163120ecf
gdbserver/mem-break.cc
gdbserver/server.cc
gdbserver/target.cc
gdbserver/target.h
gdbserver/tracepoint.cc