aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/target.h
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2022-03-29 13:32:48 +0100
committerPedro Alves <pedro@palves.net>2022-04-14 20:22:56 +0100
commit8e347faf8f1556a0f1afc33bd53099ec5f2f8efe (patch)
tree09232d21bd7f8460d6fc9f399c4891d7f5c609de /gdbserver/target.h
parent421490af33bfbfe8a8429f0e43fb3e9f8727476e (diff)
downloadbinutils-8e347faf8f1556a0f1afc33bd53099ec5f2f8efe.zip
binutils-8e347faf8f1556a0f1afc33bd53099ec5f2f8efe.tar.gz
binutils-8e347faf8f1556a0f1afc33bd53099ec5f2f8efe.tar.bz2
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
Diffstat (limited to 'gdbserver/target.h')
-rw-r--r--gdbserver/target.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/gdbserver/target.h b/gdbserver/target.h
index aaa9dab..f3172e2 100644
--- a/gdbserver/target.h
+++ b/gdbserver/target.h
@@ -141,21 +141,6 @@ public:
If REGNO is -1, store all registers; otherwise, store at least REGNO. */
virtual void store_registers (regcache *regcache, int regno) = 0;
- /* Prepare to read or write memory from the inferior process.
- Targets use this to do what is necessary to get the state of the
- inferior such that it is possible to access memory.
-
- This should generally only be called from client facing routines,
- such as gdb_read_memory/gdb_write_memory, or the GDB breakpoint
- insertion routine.
-
- Like `read_memory' and `write_memory' below, returns 0 on success
- and errno on failure. */
- virtual int prepare_to_access_memory ();
-
- /* Undo the effects of prepare_to_access_memory. */
- virtual void done_accessing_memory ();
-
/* Read memory from the inferior process. This should generally be
called through read_inferior_memory, which handles breakpoint shadowing.
@@ -691,12 +676,6 @@ target_read_btrace_conf (struct btrace_target_info *tinfo,
ptid_t mywait (ptid_t ptid, struct target_waitstatus *ourstatus,
target_wait_flags options, int connected_wait);
-/* Prepare to read or write memory from the inferior process. See the
- corresponding process_stratum_target methods for more details. */
-
-int prepare_to_access_memory (void);
-void done_accessing_memory (void);
-
#define target_core_of_thread(ptid) \
the_target->core_of_thread (ptid)