gdbserver/linux-low: delete 'linux_target_ops' and 'the_low_target'

All the linux target ops have been moved into linux_process_target
as methods.  The 'linux_target_ops' struct and its instantiations
are now obsolete.  Delete them.

gdbserver/ChangeLog:
2020-04-02  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.
This commit is contained in:
Tankut Baris Aktemur 2020-04-02 15:11:32 +02:00
parent fc5ecdb630
commit 0dd7b52ede
21 changed files with 24 additions and 75 deletions

View File

@ -1,3 +1,27 @@
2020-04-02 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.
2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete

View File

@ -3167,10 +3167,6 @@ aarch64_target::breakpoint_kind_from_current_state (CORE_ADDR *pcptr)
return arm_breakpoint_kind_from_current_state (pcptr); return arm_breakpoint_kind_from_current_state (pcptr);
} }
struct linux_target_ops the_low_target =
{
};
/* The linux target ops object. */ /* The linux target ops object. */
linux_process_target *the_linux_target = &the_aarch64_target; linux_process_target *the_linux_target = &the_aarch64_target;

View File

@ -1128,9 +1128,6 @@ arm_target::get_regs_info ()
return &regs_info_arm; return &regs_info_arm;
} }
struct linux_target_ops the_low_target = {
};
/* The linux target ops object. */ /* The linux target ops object. */
linux_process_target *the_linux_target = &the_arm_target; linux_process_target *the_linux_target = &the_arm_target;

View File

@ -162,9 +162,6 @@ bfin_target::get_regs_info ()
return &myregs_info; return &myregs_info;
} }
struct linux_target_ops the_low_target = {
};
/* The linux target ops object. */ /* The linux target ops object. */
linux_process_target *the_linux_target = &the_bfin_target; linux_process_target *the_linux_target = &the_bfin_target;

View File

@ -158,9 +158,6 @@ cris_target::get_regs_info ()
return &myregs_info; return &myregs_info;
} }
struct linux_target_ops the_low_target = {
};
/* The linux target ops object. */ /* The linux target ops object. */
linux_process_target *the_linux_target = &the_cris_target; linux_process_target *the_linux_target = &the_cris_target;

View File

@ -459,9 +459,6 @@ crisv32_target::get_regs_info ()
return &myregs_info; return &myregs_info;
} }
struct linux_target_ops the_low_target = {
};
/* The linux target ops object. */ /* The linux target ops object. */
linux_process_target *the_linux_target = &the_crisv32_target; linux_process_target *the_linux_target = &the_crisv32_target;

View File

@ -385,10 +385,6 @@ ia64_target::low_arch_setup ()
current_process ()->tdesc = tdesc_ia64; current_process ()->tdesc = tdesc_ia64;
} }
struct linux_target_ops the_low_target = {
};
/* The linux target ops object. */ /* The linux target ops object. */
linux_process_target *the_linux_target = &the_ia64_target; linux_process_target *the_linux_target = &the_ia64_target;

View File

@ -129,12 +129,6 @@ struct process_info_private
struct lwp_info; struct lwp_info;
struct linux_target_ops
{
};
extern struct linux_target_ops the_low_target;
/* Target ops definitions for a Linux target. */ /* Target ops definitions for a Linux target. */
class linux_process_target : public process_stratum_target class linux_process_target : public process_stratum_target

View File

@ -152,9 +152,6 @@ m32r_target::get_regs_info ()
return &myregs_info; return &myregs_info;
} }
struct linux_target_ops the_low_target = {
};
/* The linux target ops object. */ /* The linux target ops object. */
linux_process_target *the_linux_target = &the_m32r_target; linux_process_target *the_linux_target = &the_m32r_target;

View File

@ -256,9 +256,6 @@ m68k_target::low_arch_setup ()
current_process ()->tdesc = tdesc_m68k; current_process ()->tdesc = tdesc_m68k;
} }
struct linux_target_ops the_low_target = {
};
/* The linux target ops object. */ /* The linux target ops object. */
linux_process_target *the_linux_target = &the_m68k_target; linux_process_target *the_linux_target = &the_m68k_target;

View File

@ -997,9 +997,6 @@ mips_target::get_regs_info ()
return &myregs_info; return &myregs_info;
} }
struct linux_target_ops the_low_target = {
};
/* The linux target ops object. */ /* The linux target ops object. */
linux_process_target *the_linux_target = &the_mips_target; linux_process_target *the_linux_target = &the_mips_target;

View File

@ -277,10 +277,6 @@ nios2_target::get_regs_info ()
return &myregs_info; return &myregs_info;
} }
struct linux_target_ops the_low_target =
{
};
/* The linux target ops object. */ /* The linux target ops object. */
linux_process_target *the_linux_target = &the_nios2_target; linux_process_target *the_linux_target = &the_nios2_target;

View File

@ -3447,9 +3447,6 @@ ppc_target::get_ipa_tdesc_idx ()
return 0; return 0;
} }
struct linux_target_ops the_low_target = {
};
/* The linux target ops object. */ /* The linux target ops object. */
linux_process_target *the_linux_target = &the_ppc_target; linux_process_target *the_linux_target = &the_ppc_target;

View File

@ -308,11 +308,6 @@ riscv_target::low_breakpoint_at (CORE_ADDR pc)
return false; return false;
} }
/* RISC-V/Linux target operations. */
struct linux_target_ops the_low_target =
{
};
/* The linux target ops object. */ /* The linux target ops object. */
linux_process_target *the_linux_target = &the_riscv_target; linux_process_target *the_linux_target = &the_riscv_target;

View File

@ -2856,9 +2856,6 @@ s390_target::emit_ops ()
return &s390_emit_ops_impl; return &s390_emit_ops_impl;
} }
struct linux_target_ops the_low_target = {
};
/* The linux target ops object. */ /* The linux target ops object. */
linux_process_target *the_linux_target = &the_s390_target; linux_process_target *the_linux_target = &the_s390_target;

View File

@ -183,9 +183,6 @@ sh_target::low_arch_setup ()
current_process ()->tdesc = tdesc_sh; current_process ()->tdesc = tdesc_sh;
} }
struct linux_target_ops the_low_target = {
};
/* The linux target ops object. */ /* The linux target ops object. */
linux_process_target *the_linux_target = &the_sh_target; linux_process_target *the_linux_target = &the_sh_target;

View File

@ -340,9 +340,6 @@ sparc_target::get_regs_info ()
return &myregs_info; return &myregs_info;
} }
struct linux_target_ops the_low_target = {
};
/* The linux target ops object. */ /* The linux target ops object. */
linux_process_target *the_linux_target = &the_sparc_target; linux_process_target *the_linux_target = &the_sparc_target;

View File

@ -200,8 +200,6 @@ static int tic6x_regmap_c62x[] = {
#endif #endif
extern struct linux_target_ops the_low_target;
static int *tic6x_regmap; static int *tic6x_regmap;
static unsigned int tic6x_breakpoint; static unsigned int tic6x_breakpoint;
#define tic6x_breakpoint_len 4 #define tic6x_breakpoint_len 4
@ -414,9 +412,6 @@ tic6x_target::get_regs_info ()
return &myregs_info; return &myregs_info;
} }
struct linux_target_ops the_low_target = {
};
#if GDB_SELF_TEST #if GDB_SELF_TEST
#include "gdbsupport/selftest.h" #include "gdbsupport/selftest.h"

View File

@ -213,10 +213,6 @@ tile_target::low_arch_setup ()
current_process ()->tdesc = tdesc_tilegx; current_process ()->tdesc = tdesc_tilegx;
} }
struct linux_target_ops the_low_target =
{
};
/* The linux target ops object. */ /* The linux target ops object. */
linux_process_target *the_linux_target = &the_tile_target; linux_process_target *the_linux_target = &the_tile_target;

View File

@ -2992,13 +2992,6 @@ x86_target::get_ipa_tdesc_idx ()
return i386_get_ipa_tdesc_idx (tdesc); 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. */ /* The linux target ops object. */
linux_process_target *the_linux_target = &the_x86_target; linux_process_target *the_linux_target = &the_x86_target;

View File

@ -320,9 +320,6 @@ xtensa_target::get_regs_info ()
return &myregs_info; return &myregs_info;
} }
struct linux_target_ops the_low_target = {
};
/* The linux target ops object. */ /* The linux target ops object. */
linux_process_target *the_linux_target = &the_xtensa_target; linux_process_target *the_linux_target = &the_xtensa_target;