From ea06bbaaaa975331a42f2054551e78f588020462 Mon Sep 17 00:00:00 2001 From: Tankut Baris Aktemur Date: Mon, 17 Feb 2020 16:11:56 +0100 Subject: gdbserver: turn target op 'hostio_last_error' into a method gdbserver/ChangeLog: 2020-02-20 Tankut Baris Aktemur Turn process_stratum_target's hostio_last_error op into a method of process_target. * target.h (struct process_stratum_target): Remove the target op. (class process_target): Add the target op. * target.cc: Add "hostio.h" to includes. (process_target::hostio_last_error): Define. Update the derived classes and callers below. * hostio.cc (hostio_error): Update. * linux-low.cc: Remove "hostio.h" from includes. (linux_target_ops): Update. * lynx-low.cc (lynx_target_ops): Update. * nto-low.cc (nto_target_ops): Update. * win32-low.h (class win32_process_target): Update. * win32-low.cc (win32_target_ops): Update. (wince_hostio_last_error): Turn into ... (win32_process_target::hostio_last_error): ... this. --- gdbserver/win32-low.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdbserver/win32-low.h') diff --git a/gdbserver/win32-low.h b/gdbserver/win32-low.h index b2b8a6d..86447fd 100644 --- a/gdbserver/win32-low.h +++ b/gdbserver/win32-low.h @@ -152,6 +152,10 @@ public: bool stopped_by_watchpoint () override; CORE_ADDR stopped_data_address () override; + +#ifdef _WIN32_WCE + void hostio_last_error (char *buf) override; +#endif }; /* Retrieve the context for this thread, if not already retrieved. */ -- cgit v1.1