forked from Imagelibrary/binutils-gdb
gdbserver: turn target op 'detach' into a method
gdbserver/ChangeLog: 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> Turn process_stratum_target's detach op into a method of process_target. * target.h (struct process_stratum_target): Remove the target op. (class process_target): Add the target op. (detach_inferior): Update the macro. Update the derived classes and callers below. * linux-low.cc (linux_target_ops): Update. (linux_detach): Turn into ... (linux_process_target::detach): ... this. * linux-low.h (class linux_process_target): Update. * lynx-low.cc (lynx_target_ops): Update. (lynx_detach): Turn into ... (lynx_process_target::detach): ... this. * lynx-low.h (class lynx_process_target): Update. * nto-low.cc (nto_target_ops): Update. (nto_detach): Turn into ... (nto_process_target::detach): ... this. * nto-low.h (class nto_process_target): Update. * win32-low.cc (win32_target_ops): Update. (win32_detach): Turn into ... (win32_process_target::detach): ... this. * win32-low.h (class win32_process_target): Update.
This commit is contained in:
@@ -1603,8 +1603,8 @@ linux_detach_lwp_callback (thread_info *thread)
|
||||
linux_detach_one_lwp (lwp);
|
||||
}
|
||||
|
||||
static int
|
||||
linux_detach (process_info *process)
|
||||
int
|
||||
linux_process_target::detach (process_info *process)
|
||||
{
|
||||
struct lwp_info *main_lwp;
|
||||
|
||||
@@ -7359,7 +7359,6 @@ linux_get_hwcap2 (int wordsize)
|
||||
static linux_process_target the_linux_target;
|
||||
|
||||
static process_stratum_target linux_target_ops = {
|
||||
linux_detach,
|
||||
linux_mourn,
|
||||
linux_join,
|
||||
linux_thread_alive,
|
||||
|
||||
Reference in New Issue
Block a user