]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdbserver/server.cc
gdbserver: turn target op 'read_offsets' into a method
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Mon, 17 Feb 2020 15:11:56 +0000 (16:11 +0100)
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Thu, 20 Feb 2020 16:35:09 +0000 (17:35 +0100)
commit5203ae1e870191ef058c1b4590f9b9fbf6b594ed
tree3e007efaed194549c0aa7c25797e200cb0ba348a
parent6eeb5c5531f0238d367a2f3f1520ae3e2401f7ea
gdbserver: turn target op 'read_offsets' into a method

gdbserver/ChangeLog:
2020-02-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

Turn process_stratum_target's read_offsets op into a method of
process_target.

* target.h (struct process_stratum_target): Remove the target op.
(class process_target): Add the target op.  Also add
'supports_read_offsets'.
* target.cc (process_target::read_offsets): Define.
(process_target::supports_read_offsets): Define.

Update the derived classes and callers below.

* server.cc (handle_query): Update.
* linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
(linux_target_ops): Update.
(linux_process_target::supports_read_offsets): Define.
(linux_read_offsets): Turn into ...
(linux_process_target::read_offsets): ... 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.
gdbserver/ChangeLog
gdbserver/linux-low.cc
gdbserver/linux-low.h
gdbserver/lynx-low.cc
gdbserver/nto-low.cc
gdbserver/server.cc
gdbserver/target.cc
gdbserver/target.h
gdbserver/win32-low.cc