diff options
author | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2020-02-17 16:11:59 +0100 |
---|---|---|
committer | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2020-02-20 17:35:14 +0100 |
commit | 4e2e869cb3336beb959a969e7b7c7897583ef16e (patch) | |
tree | d00e15f06541649a46f981f2a38b4c89d5ee296b /gdbserver/win32-low.h | |
parent | 68119632a065f7d2a1bdd4c9524484c741544f24 (diff) | |
download | gdb-4e2e869cb3336beb959a969e7b7c7897583ef16e.zip gdb-4e2e869cb3336beb959a969e7b7c7897583ef16e.tar.gz gdb-4e2e869cb3336beb959a969e7b7c7897583ef16e.tar.bz2 |
gdbserver: turn target op 'get_tib_address' into a method
gdbserver/ChangeLog:
2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Turn process_stratum_target's get_tib_address 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_get_tib_address'.
* target.cc (process_target::get_tib_address): Define.
(process_target::supports_get_tib_address): Define.
Update the derived classes and callers below.
* server.cc (handle_query): Update.
* linux-low.cc (win32_target_ops): Update.
* lynx-low.cc (lynx_target_ops): Update.
* nto-low.cc (nto_target_ops): Update.
* win32-low.cc (win32_target_ops): Update.
(win32_process_target::supports_get_tib_address): Define.
(win32_get_tib_address): Turn into ...
(win32_process_target::get_tib_address): ... this.
* win32-low.h (class win32_process_target): Update.
Diffstat (limited to 'gdbserver/win32-low.h')
-rw-r--r-- | gdbserver/win32-low.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdbserver/win32-low.h b/gdbserver/win32-low.h index b259b1f..1618501 100644 --- a/gdbserver/win32-low.h +++ b/gdbserver/win32-low.h @@ -162,6 +162,10 @@ public: int qxfer_siginfo (const char *annex, unsigned char *readbuf, unsigned const char *writebuf, CORE_ADDR offset, int len) override; + + bool supports_get_tib_address () override; + + int get_tib_address (ptid_t ptid, CORE_ADDR *addr) override; }; /* Retrieve the context for this thread, if not already retrieved. */ |