diff options
author | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2020-02-17 16:11:53 +0100 |
---|---|---|
committer | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2020-02-20 17:35:05 +0100 |
commit | 79b4408780b27eeb60de7f3fe10bc654dddcf067 (patch) | |
tree | a5e3f35e999c60cd768f29be023cdb523a2b8995 /gdbserver/nto-low.cc | |
parent | a5a4d4cd0c5fb2240d8157c98e2fe5078f9d3263 (diff) | |
download | gdb-79b4408780b27eeb60de7f3fe10bc654dddcf067.zip gdb-79b4408780b27eeb60de7f3fe10bc654dddcf067.tar.gz gdb-79b4408780b27eeb60de7f3fe10bc654dddcf067.tar.bz2 |
gdbserver: turn prepare_to_access_memory & done_accessing_memory into methods
gdbserver/ChangeLog:
2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Turn process_stratum_target's prepare_to_access_memory and
done_accessing_memory ops into methods of process_target.
* target.h (struct process_stratum_target): Remove the target ops.
(class process_target): Add the target ops.
* target.cc (process_target::prepare_to_access_memory): Define.
(process_target::done_accessing_memory): Define.
(prepare_to_access_memory): Update.
(done_accessing_memory): Update.
Update the derived classes and callers below.
* linux-low.cc (linux_target_ops): Update.
(linux_prepare_to_access_memory): Turn into ...
(linux_process_target::prepare_to_access_memory): ... this.
(linux_done_accessing_memory): Turn into ...
(linux_process_target::done_accessing_memory): ... this.
* linux-low.h (class linux_process_target): Update.
* lynx-low.cc (lynx_target_ops): Update.
* nto-low.cc (nto_target_ops): Update.
* win32-low.cc (win32_target_ops): Update.
Diffstat (limited to 'gdbserver/nto-low.cc')
-rw-r--r-- | gdbserver/nto-low.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gdbserver/nto-low.cc b/gdbserver/nto-low.cc index a051f36..36bd40c 100644 --- a/gdbserver/nto-low.cc +++ b/gdbserver/nto-low.cc @@ -941,8 +941,6 @@ nto_sw_breakpoint_from_kind (int kind, int *size) static nto_process_target the_nto_target; static process_stratum_target nto_target_ops = { - NULL, /* prepare_to_access_memory */ - NULL, /* done_accessing_memory */ nto_read_memory, nto_write_memory, NULL, /* nto_look_up_symbols */ |