[31/31] gdbserver/linux-low: delete 'linux_target_ops' and 'the_low_target'
Commit Message
All the linux target ops have been moved into linux_process_target
as methods. The 'linux_target_ops' struct and its instantiations
are not obsolete. Delete them.
gdbserver/ChangeLog:
2020-03-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
* linux-low.h (struct linux_target_ops): Remove.
(the_low_target): Remove.
* linux-x86-low.cc (the_low_target): Remove.
* linux-aarch64-low.cc (the_low_target): Ditto.
* linux-arm-low.cc (the_low_target): Ditto.
* linux-bfin-low.cc (the_low_target): Ditto.
* linux-cris-low.cc (the_low_target): Ditto.
* linux-crisv32-low.cc (the_low_target): Ditto.
* linux-ia64-low.cc (the_low_target): Ditto.
* linux-m32r-low.cc (the_low_target): Ditto.
* linux-m68k-low.cc (the_low_target): Ditto.
* linux-mips-low.cc (the_low_target): Ditto.
* linux-nios2-low.cc (the_low_target): Ditto.
* linux-ppc-low.cc (the_low_target): Ditto.
* linux-riscv-low.cc (the_low_target): Ditto.
* linux-s390-low.cc (the_low_target): Ditto.
* linux-sh-low.cc (the_low_target): Ditto.
* linux-sparc-low.cc (the_low_target): Ditto.
* linux-tic6x-low.cc (the_low_target): Ditto.
* linux-tile-low.cc (the_low_target): Ditto.
* linux-xtensa-low.cc (the_low_target): Ditto.
---
gdbserver/linux-aarch64-low.cc | 4 ----
gdbserver/linux-arm-low.cc | 3 ---
gdbserver/linux-bfin-low.cc | 3 ---
gdbserver/linux-cris-low.cc | 3 ---
gdbserver/linux-crisv32-low.cc | 3 ---
gdbserver/linux-ia64-low.cc | 4 ----
gdbserver/linux-low.h | 6 ------
gdbserver/linux-m32r-low.cc | 3 ---
gdbserver/linux-m68k-low.cc | 3 ---
gdbserver/linux-mips-low.cc | 3 ---
gdbserver/linux-nios2-low.cc | 4 ----
gdbserver/linux-ppc-low.cc | 3 ---
gdbserver/linux-riscv-low.cc | 5 -----
gdbserver/linux-s390-low.cc | 3 ---
gdbserver/linux-sh-low.cc | 3 ---
gdbserver/linux-sparc-low.cc | 3 ---
gdbserver/linux-tic6x-low.cc | 5 -----
gdbserver/linux-tile-low.cc | 4 ----
gdbserver/linux-x86-low.cc | 7 -------
gdbserver/linux-xtensa-low.cc | 3 ---
20 files changed, 75 deletions(-)
@@ -3168,10 +3168,6 @@ aarch64_target::breakpoint_kind_from_current_state (CORE_ADDR *pcptr)
return arm_breakpoint_kind_from_current_state (pcptr);
}
-struct linux_target_ops the_low_target =
-{
-};
-
/* The linux target ops object. */
linux_process_target *the_linux_target = &the_aarch64_target;
@@ -1130,9 +1130,6 @@ arm_target::get_regs_info ()
return ®s_info_arm;
}
-struct linux_target_ops the_low_target = {
-};
-
/* The linux target ops object. */
linux_process_target *the_linux_target = &the_arm_target;
@@ -156,9 +156,6 @@ bfin_target::get_regs_info ()
return &myregs_info;
}
-struct linux_target_ops the_low_target = {
-};
-
/* The linux target ops object. */
linux_process_target *the_linux_target = &the_bfin_target;
@@ -160,9 +160,6 @@ cris_target::get_regs_info ()
return &myregs_info;
}
-struct linux_target_ops the_low_target = {
-};
-
/* The linux target ops object. */
linux_process_target *the_linux_target = &the_cris_target;
@@ -461,9 +461,6 @@ crisv32_target::get_regs_info ()
return &myregs_info;
}
-struct linux_target_ops the_low_target = {
-};
-
/* The linux target ops object. */
linux_process_target *the_linux_target = &the_crisv32_target;
@@ -387,10 +387,6 @@ ia64_target::low_arch_setup ()
current_process ()->tdesc = tdesc_ia64;
}
-
-struct linux_target_ops the_low_target = {
-};
-
/* The linux target ops object. */
linux_process_target *the_linux_target = &the_ia64_target;
@@ -129,12 +129,6 @@ struct process_info_private
struct lwp_info;
-struct linux_target_ops
-{
-};
-
-extern struct linux_target_ops the_low_target;
-
/* Target ops definitions for a Linux target. */
class linux_process_target : public process_stratum_target
@@ -154,9 +154,6 @@ m32r_target::get_regs_info ()
return &myregs_info;
}
-struct linux_target_ops the_low_target = {
-};
-
/* The linux target ops object. */
linux_process_target *the_linux_target = &the_m32r_target;
@@ -250,9 +250,6 @@ m68k_target::low_arch_setup ()
current_process ()->tdesc = tdesc_m68k;
}
-struct linux_target_ops the_low_target = {
-};
-
/* The linux target ops object. */
linux_process_target *the_linux_target = &the_m68k_target;
@@ -999,9 +999,6 @@ mips_target::get_regs_info ()
return &myregs_info;
}
-struct linux_target_ops the_low_target = {
-};
-
/* The linux target ops object. */
linux_process_target *the_linux_target = &the_mips_target;
@@ -279,10 +279,6 @@ nios2_target::get_regs_info ()
return &myregs_info;
}
-struct linux_target_ops the_low_target =
-{
-};
-
/* The linux target ops object. */
linux_process_target *the_linux_target = &the_nios2_target;
@@ -3449,9 +3449,6 @@ ppc_target::get_ipa_tdesc_idx ()
return 0;
}
-struct linux_target_ops the_low_target = {
-};
-
/* The linux target ops object. */
linux_process_target *the_linux_target = &the_ppc_target;
@@ -310,11 +310,6 @@ riscv_target::low_breakpoint_at (CORE_ADDR pc)
return false;
}
-/* RISC-V/Linux target operations. */
-struct linux_target_ops the_low_target =
-{
-};
-
/* The linux target ops object. */
linux_process_target *the_linux_target = &the_riscv_target;
@@ -2850,9 +2850,6 @@ s390_target::emit_ops ()
return &s390_emit_ops_impl;
}
-struct linux_target_ops the_low_target = {
-};
-
/* The linux target ops object. */
linux_process_target *the_linux_target = &the_s390_target;
@@ -185,9 +185,6 @@ sh_target::low_arch_setup ()
current_process ()->tdesc = tdesc_sh;
}
-struct linux_target_ops the_low_target = {
-};
-
/* The linux target ops object. */
linux_process_target *the_linux_target = &the_sh_target;
@@ -342,9 +342,6 @@ sparc_target::get_regs_info ()
return &myregs_info;
}
-struct linux_target_ops the_low_target = {
-};
-
/* The linux target ops object. */
linux_process_target *the_linux_target = &the_sparc_target;
@@ -202,8 +202,6 @@ static int tic6x_regmap_c62x[] = {
#endif
-extern struct linux_target_ops the_low_target;
-
static int *tic6x_regmap;
static unsigned int tic6x_breakpoint;
#define tic6x_breakpoint_len 4
@@ -416,9 +414,6 @@ tic6x_target::get_regs_info ()
return &myregs_info;
}
-struct linux_target_ops the_low_target = {
-};
-
#if GDB_SELF_TEST
#include "gdbsupport/selftest.h"
@@ -215,10 +215,6 @@ tile_target::low_arch_setup ()
current_process ()->tdesc = tdesc_tilegx;
}
-struct linux_target_ops the_low_target =
-{
-};
-
/* The linux target ops object. */
linux_process_target *the_linux_target = &the_tile_target;
@@ -2985,13 +2985,6 @@ x86_target::get_ipa_tdesc_idx ()
return i386_get_ipa_tdesc_idx (tdesc);
}
-/* This is initialized assuming an amd64 target.
- x86_arch_setup will correct it for i386 or amd64 targets. */
-
-struct linux_target_ops the_low_target =
-{
-};
-
/* The linux target ops object. */
linux_process_target *the_linux_target = &the_x86_target;
@@ -322,9 +322,6 @@ xtensa_target::get_regs_info ()
return &myregs_info;
}
-struct linux_target_ops the_low_target = {
-};
-
/* The linux target ops object. */
linux_process_target *the_linux_target = &the_xtensa_target;