aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/lynx-low.h
diff options
context:
space:
mode:
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2020-02-17 16:11:53 +0100
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2020-02-20 17:35:05 +0100
commita5a4d4cd0c5fb2240d8157c98e2fe5078f9d3263 (patch)
tree1e0cf29b5eb7beb9e8027df4b6c027bbbdefc82e /gdbserver/lynx-low.h
parent6532e7e378adbe326256ce2410ce753ec30b5ef1 (diff)
downloadgdb-a5a4d4cd0c5fb2240d8157c98e2fe5078f9d3263.zip
gdb-a5a4d4cd0c5fb2240d8157c98e2fe5078f9d3263.tar.gz
gdb-a5a4d4cd0c5fb2240d8157c98e2fe5078f9d3263.tar.bz2
gdbserver: turn target ops 'fetch_registers' and 'store_registers' into methods
gdbserver/ChangeLog: 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> Turn process_stratum_target's fetch_registers and store_registers ops into methods of process_target. * target.h (struct process_stratum_target): Remove the target ops. (class process_target): Add the target ops. (fetch_inferior_registers): Update the macro. (store_inferior_registers): Update the macro. Update the derived classes and callers below. * linux-low.cc (linux_target_ops): Update. (linux_fetch_registers): Turn into ... (linux_process_target::fetch_registers): ... this. (linux_store_registers): Turn into ... (linux_process_target::store_registers): ... this. * linux-low.h (class linux_process_target): Update. * lynx-low.cc (lynx_target_ops): Update. (lynx_fetch_registers): Turn into ... (lynx_process_target::fetch_registers): ... this. (lynx_store_registers): Turn into ... (lynx_process_target::store_registers): ... this. * lynx-low.h (class lynx_process_target): Update. * nto-low.cc (nto_target_ops): Update. (nto_fetch_registers): Turn into ... (nto_process_target::fetch_registers): ... this. (nto_store_registers): Turn into ... (nto_process_target::store_registers): ... this. * nto-low.h (class nto_process_target): Update. * win32-low.cc (win32_target_ops): Update. (win32_fetch_inferior_registers): Turn into ... (win32_process_target::fetch_registers): ... this. (win32_store_inferior_registers): Turn into ... (win32_process_target::store_registers): ... this. * win32-low.h (class win32_process_target): Update.
Diffstat (limited to 'gdbserver/lynx-low.h')
-rw-r--r--gdbserver/lynx-low.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdbserver/lynx-low.h b/gdbserver/lynx-low.h
index 3571471..ea6cf00 100644
--- a/gdbserver/lynx-low.h
+++ b/gdbserver/lynx-low.h
@@ -77,6 +77,10 @@ public:
ptid_t wait (ptid_t ptid, target_waitstatus *status,
int options) override;
+
+ void fetch_registers (regcache *regcache, int regno) override;
+
+ void store_registers (regcache *regcache, int regno) override;
};
/* The inferior's target description. This is a global because the