Compare commits

...

2 Commits

Author SHA1 Message Date
Keith Seitz
db17577b30 Constify target_desc declarations and features/Makefile 2022-09-12 10:57:48 -07:00
Keith Seitz
78b65950dc cleanup: Add missing feature files 2022-09-12 10:41:42 -07:00
79 changed files with 140 additions and 136 deletions

View File

@@ -46,7 +46,7 @@ ppc_linux_has_isa205 (CORE_ADDR hwcap)
const struct target_desc *
ppc_linux_match_description (struct ppc_linux_features features)
{
struct target_desc *tdesc = NULL;
const struct target_desc *tdesc = NULL;
if (features.wordsize == 8)
{

View File

@@ -22,25 +22,25 @@
struct target_desc;
extern struct target_desc *tdesc_powerpc_32l;
extern struct target_desc *tdesc_powerpc_altivec32l;
extern struct target_desc *tdesc_powerpc_vsx32l;
extern struct target_desc *tdesc_powerpc_isa205_32l;
extern struct target_desc *tdesc_powerpc_isa205_altivec32l;
extern struct target_desc *tdesc_powerpc_isa205_vsx32l;
extern struct target_desc *tdesc_powerpc_isa205_ppr_dscr_vsx32l;
extern struct target_desc *tdesc_powerpc_isa207_vsx32l;
extern struct target_desc *tdesc_powerpc_isa207_htm_vsx32l;
extern struct target_desc *tdesc_powerpc_e500l;
extern const struct target_desc *tdesc_powerpc_32l;
extern const struct target_desc *tdesc_powerpc_altivec32l;
extern const struct target_desc *tdesc_powerpc_vsx32l;
extern const struct target_desc *tdesc_powerpc_isa205_32l;
extern const struct target_desc *tdesc_powerpc_isa205_altivec32l;
extern const struct target_desc *tdesc_powerpc_isa205_vsx32l;
extern const struct target_desc *tdesc_powerpc_isa205_ppr_dscr_vsx32l;
extern const struct target_desc *tdesc_powerpc_isa207_vsx32l;
extern const struct target_desc *tdesc_powerpc_isa207_htm_vsx32l;
extern const struct target_desc *tdesc_powerpc_e500l;
extern struct target_desc *tdesc_powerpc_64l;
extern struct target_desc *tdesc_powerpc_altivec64l;
extern struct target_desc *tdesc_powerpc_vsx64l;
extern struct target_desc *tdesc_powerpc_isa205_64l;
extern struct target_desc *tdesc_powerpc_isa205_altivec64l;
extern struct target_desc *tdesc_powerpc_isa205_vsx64l;
extern struct target_desc *tdesc_powerpc_isa205_ppr_dscr_vsx64l;
extern struct target_desc *tdesc_powerpc_isa207_vsx64l;
extern struct target_desc *tdesc_powerpc_isa207_htm_vsx64l;
extern const struct target_desc *tdesc_powerpc_64l;
extern const struct target_desc *tdesc_powerpc_altivec64l;
extern const struct target_desc *tdesc_powerpc_vsx64l;
extern const struct target_desc *tdesc_powerpc_isa205_64l;
extern const struct target_desc *tdesc_powerpc_isa205_altivec64l;
extern const struct target_desc *tdesc_powerpc_isa205_vsx64l;
extern const struct target_desc *tdesc_powerpc_isa205_ppr_dscr_vsx64l;
extern const struct target_desc *tdesc_powerpc_isa207_vsx64l;
extern const struct target_desc *tdesc_powerpc_isa207_htm_vsx64l;
#endif /* ARCH_PPC_LINUX_TDESC_H */

View File

@@ -108,6 +108,7 @@ XMLTOC = \
nds32.xml \
nios2.xml \
or1k.xml \
or1k-linux.xml \
rs6000/powerpc-32.xml \
rs6000/powerpc-32l.xml \
rs6000/powerpc-403.xml \
@@ -164,6 +165,8 @@ XMLTOC = \
s390x-vx-linux64.xml \
s390-gs-linux64.xml \
s390x-gs-linux64.xml \
sparc/sparc32-solaris.xml \
sparc/sparc64-solaris.xml \
z80.xml
TDESC_CFILES = $(patsubst %.xml,%.c,$(XMLTOC))
@@ -209,6 +212,7 @@ FEATURE_XMLFILES = aarch64-core.xml \
arm/arm-m-profile-mve.xml \
arm/arm-m-system.xml \
arm/arm-m-profile-with-fpa.xml \
arm/arm-secext.xml \
arm/arm-tls.xml \
arm/arm-vfpv2.xml \
arm/arm-vfpv3.xml \

View File

@@ -4,7 +4,7 @@
#include "gdbsupport/tdesc.h"
static int
create_feature_arm_arm_m_system (struct target_desc *result, long regnum)
create_feature_arm_arm_secext (struct target_desc *result, long regnum)
{
struct tdesc_feature *feature;

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_microblaze_with_stack_protect;
const struct target_desc *tdesc_microblaze_with_stack_protect;
static void
initialize_tdesc_microblaze_with_stack_protect (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_microblaze;
const struct target_desc *tdesc_microblaze;
static void
initialize_tdesc_microblaze (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_mips_dsp_linux;
const struct target_desc *tdesc_mips_dsp_linux;
static void
initialize_tdesc_mips_dsp_linux (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_mips_linux;
const struct target_desc *tdesc_mips_linux;
static void
initialize_tdesc_mips_linux (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_mips64_dsp_linux;
const struct target_desc *tdesc_mips64_dsp_linux;
static void
initialize_tdesc_mips64_dsp_linux (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_mips64_linux;
const struct target_desc *tdesc_mips64_linux;
static void
initialize_tdesc_mips64_linux (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_nds32;
const struct target_desc *tdesc_nds32;
static void
initialize_tdesc_nds32 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_nios2;
const struct target_desc *tdesc_nios2;
static void
initialize_tdesc_nios2 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_or1k_linux;
const struct target_desc *tdesc_or1k_linux;
static void
initialize_tdesc_or1k_linux (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_or1k;
const struct target_desc *tdesc_or1k;
static void
initialize_tdesc_or1k (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_32;
const struct target_desc *tdesc_powerpc_32;
static void
initialize_tdesc_powerpc_32 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_32l;
const struct target_desc *tdesc_powerpc_32l;
static void
initialize_tdesc_powerpc_32l (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_403;
const struct target_desc *tdesc_powerpc_403;
static void
initialize_tdesc_powerpc_403 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_403gc;
const struct target_desc *tdesc_powerpc_403gc;
static void
initialize_tdesc_powerpc_403gc (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_405;
const struct target_desc *tdesc_powerpc_405;
static void
initialize_tdesc_powerpc_405 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_505;
const struct target_desc *tdesc_powerpc_505;
static void
initialize_tdesc_powerpc_505 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_601;
const struct target_desc *tdesc_powerpc_601;
static void
initialize_tdesc_powerpc_601 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_602;
const struct target_desc *tdesc_powerpc_602;
static void
initialize_tdesc_powerpc_602 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_603;
const struct target_desc *tdesc_powerpc_603;
static void
initialize_tdesc_powerpc_603 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_604;
const struct target_desc *tdesc_powerpc_604;
static void
initialize_tdesc_powerpc_604 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_64;
const struct target_desc *tdesc_powerpc_64;
static void
initialize_tdesc_powerpc_64 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_64l;
const struct target_desc *tdesc_powerpc_64l;
static void
initialize_tdesc_powerpc_64l (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_7400;
const struct target_desc *tdesc_powerpc_7400;
static void
initialize_tdesc_powerpc_7400 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_750;
const struct target_desc *tdesc_powerpc_750;
static void
initialize_tdesc_powerpc_750 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_860;
const struct target_desc *tdesc_powerpc_860;
static void
initialize_tdesc_powerpc_860 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_altivec32;
const struct target_desc *tdesc_powerpc_altivec32;
static void
initialize_tdesc_powerpc_altivec32 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_altivec32l;
const struct target_desc *tdesc_powerpc_altivec32l;
static void
initialize_tdesc_powerpc_altivec32l (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_altivec64;
const struct target_desc *tdesc_powerpc_altivec64;
static void
initialize_tdesc_powerpc_altivec64 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_altivec64l;
const struct target_desc *tdesc_powerpc_altivec64l;
static void
initialize_tdesc_powerpc_altivec64l (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_e500;
const struct target_desc *tdesc_powerpc_e500;
static void
initialize_tdesc_powerpc_e500 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_e500l;
const struct target_desc *tdesc_powerpc_e500l;
static void
initialize_tdesc_powerpc_e500l (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_isa205_32l;
const struct target_desc *tdesc_powerpc_isa205_32l;
static void
initialize_tdesc_powerpc_isa205_32l (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_isa205_64l;
const struct target_desc *tdesc_powerpc_isa205_64l;
static void
initialize_tdesc_powerpc_isa205_64l (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_isa205_altivec32l;
const struct target_desc *tdesc_powerpc_isa205_altivec32l;
static void
initialize_tdesc_powerpc_isa205_altivec32l (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_isa205_altivec64l;
const struct target_desc *tdesc_powerpc_isa205_altivec64l;
static void
initialize_tdesc_powerpc_isa205_altivec64l (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_isa205_ppr_dscr_vsx32l;
const struct target_desc *tdesc_powerpc_isa205_ppr_dscr_vsx32l;
static void
initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_isa205_ppr_dscr_vsx64l;
const struct target_desc *tdesc_powerpc_isa205_ppr_dscr_vsx64l;
static void
initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_isa205_vsx32l;
const struct target_desc *tdesc_powerpc_isa205_vsx32l;
static void
initialize_tdesc_powerpc_isa205_vsx32l (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_isa205_vsx64l;
const struct target_desc *tdesc_powerpc_isa205_vsx64l;
static void
initialize_tdesc_powerpc_isa205_vsx64l (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_isa207_htm_vsx32l;
const struct target_desc *tdesc_powerpc_isa207_htm_vsx32l;
static void
initialize_tdesc_powerpc_isa207_htm_vsx32l (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_isa207_htm_vsx64l;
const struct target_desc *tdesc_powerpc_isa207_htm_vsx64l;
static void
initialize_tdesc_powerpc_isa207_htm_vsx64l (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_isa207_vsx32l;
const struct target_desc *tdesc_powerpc_isa207_vsx32l;
static void
initialize_tdesc_powerpc_isa207_vsx32l (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_isa207_vsx64l;
const struct target_desc *tdesc_powerpc_isa207_vsx64l;
static void
initialize_tdesc_powerpc_isa207_vsx64l (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_vsx32;
const struct target_desc *tdesc_powerpc_vsx32;
static void
initialize_tdesc_powerpc_vsx32 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_vsx32l;
const struct target_desc *tdesc_powerpc_vsx32l;
static void
initialize_tdesc_powerpc_vsx32l (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_vsx64;
const struct target_desc *tdesc_powerpc_vsx64;
static void
initialize_tdesc_powerpc_vsx64 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_powerpc_vsx64l;
const struct target_desc *tdesc_powerpc_vsx64l;
static void
initialize_tdesc_powerpc_vsx64l (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_rs6000;
const struct target_desc *tdesc_rs6000;
static void
initialize_tdesc_rs6000 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_rx;
const struct target_desc *tdesc_rx;
static void
initialize_tdesc_rx (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_s390_gs_linux64;
const struct target_desc *tdesc_s390_gs_linux64;
static void
initialize_tdesc_s390_gs_linux64 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_s390_linux32;
const struct target_desc *tdesc_s390_linux32;
static void
initialize_tdesc_s390_linux32 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_s390_linux32v1;
const struct target_desc *tdesc_s390_linux32v1;
static void
initialize_tdesc_s390_linux32v1 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_s390_linux32v2;
const struct target_desc *tdesc_s390_linux32v2;
static void
initialize_tdesc_s390_linux32v2 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_s390_linux64;
const struct target_desc *tdesc_s390_linux64;
static void
initialize_tdesc_s390_linux64 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_s390_linux64v1;
const struct target_desc *tdesc_s390_linux64v1;
static void
initialize_tdesc_s390_linux64v1 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_s390_linux64v2;
const struct target_desc *tdesc_s390_linux64v2;
static void
initialize_tdesc_s390_linux64v2 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_s390_te_linux64;
const struct target_desc *tdesc_s390_te_linux64;
static void
initialize_tdesc_s390_te_linux64 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_s390_tevx_linux64;
const struct target_desc *tdesc_s390_tevx_linux64;
static void
initialize_tdesc_s390_tevx_linux64 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_s390_vx_linux64;
const struct target_desc *tdesc_s390_vx_linux64;
static void
initialize_tdesc_s390_vx_linux64 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_s390x_gs_linux64;
const struct target_desc *tdesc_s390x_gs_linux64;
static void
initialize_tdesc_s390x_gs_linux64 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_s390x_linux64;
const struct target_desc *tdesc_s390x_linux64;
static void
initialize_tdesc_s390x_linux64 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_s390x_linux64v1;
const struct target_desc *tdesc_s390x_linux64v1;
static void
initialize_tdesc_s390x_linux64v1 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_s390x_linux64v2;
const struct target_desc *tdesc_s390x_linux64v2;
static void
initialize_tdesc_s390x_linux64v2 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_s390x_te_linux64;
const struct target_desc *tdesc_s390x_te_linux64;
static void
initialize_tdesc_s390x_te_linux64 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_s390x_tevx_linux64;
const struct target_desc *tdesc_s390x_tevx_linux64;
static void
initialize_tdesc_s390x_tevx_linux64 (void)
{

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_s390x_vx_linux64;
const struct target_desc *tdesc_s390x_vx_linux64;
static void
initialize_tdesc_s390x_vx_linux64 (void)
{

View File

@@ -5,18 +5,18 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_sparc32_solaris;
const struct target_desc *tdesc_sparc32_solaris;
static void
initialize_tdesc_sparc32_solaris (void)
{
struct target_desc *result = allocate_target_description ();
target_desc_up result = allocate_target_description ();
set_tdesc_architecture (result.get (), bfd_scan_arch ("sparc"));
set_tdesc_osabi (result.get (), osabi_from_tdesc_string ("Solaris"));
struct tdesc_feature *feature;
set_tdesc_architecture (result, bfd_scan_arch ("sparc"));
set_tdesc_osabi (result, osabi_from_tdesc_string ("Solaris"));
feature = tdesc_create_feature (result, "org.gnu.gdb.sparc.cpu");
feature = tdesc_create_feature (result.get (), "org.gnu.gdb.sparc.cpu");
tdesc_create_reg (feature, "g0", 0, 1, NULL, 32, "uint32");
tdesc_create_reg (feature, "g1", 1, 1, NULL, 32, "uint32");
tdesc_create_reg (feature, "g2", 2, 1, NULL, 32, "uint32");
@@ -50,7 +50,7 @@ initialize_tdesc_sparc32_solaris (void)
tdesc_create_reg (feature, "fp", 30, 1, NULL, 32, "uint32");
tdesc_create_reg (feature, "i7", 31, 1, NULL, 32, "uint32");
feature = tdesc_create_feature (result, "org.gnu.gdb.sparc.cp0");
feature = tdesc_create_feature (result.get (), "org.gnu.gdb.sparc.cp0");
tdesc_create_reg (feature, "y", 64, 1, NULL, 32, "uint32");
tdesc_create_reg (feature, "psr", 65, 1, NULL, 32, "uint32");
tdesc_create_reg (feature, "wim", 66, 1, NULL, 32, "uint32");
@@ -60,7 +60,7 @@ initialize_tdesc_sparc32_solaris (void)
tdesc_create_reg (feature, "fsr", 70, 1, NULL, 32, "uint32");
tdesc_create_reg (feature, "csr", 71, 1, NULL, 32, "uint32");
feature = tdesc_create_feature (result, "org.gnu.gdb.sparc.fpu");
feature = tdesc_create_feature (result.get (), "org.gnu.gdb.sparc.fpu");
tdesc_create_reg (feature, "f0", 32, 1, NULL, 32, "ieee_single");
tdesc_create_reg (feature, "f1", 33, 1, NULL, 32, "ieee_single");
tdesc_create_reg (feature, "f2", 34, 1, NULL, 32, "ieee_single");
@@ -94,5 +94,5 @@ initialize_tdesc_sparc32_solaris (void)
tdesc_create_reg (feature, "f30", 62, 1, NULL, 32, "ieee_single");
tdesc_create_reg (feature, "f31", 63, 1, NULL, 32, "ieee_single");
tdesc_sparc_solaris = result;
tdesc_sparc32_solaris = result.release ();
}

View File

@@ -5,18 +5,18 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_sparc64_solaris;
const struct target_desc *tdesc_sparc64_solaris;
static void
initialize_tdesc_sparc64_solaris (void)
{
struct target_desc *result = allocate_target_description ();
target_desc_up result = allocate_target_description ();
set_tdesc_architecture (result.get (), bfd_scan_arch ("sparc:v9"));
set_tdesc_osabi (result.get (), osabi_from_tdesc_string ("Solaris"));
struct tdesc_feature *feature;
set_tdesc_architecture (result, bfd_scan_arch ("sparc"));
set_tdesc_osabi (result, osabi_from_tdesc_string ("Solaris"));
feature = tdesc_create_feature (result, "org.gnu.gdb.sparc.cpu");
feature = tdesc_create_feature (result.get (), "org.gnu.gdb.sparc.cpu");
tdesc_create_reg (feature, "g0", 0, 1, NULL, 64, "uint64");
tdesc_create_reg (feature, "g1", 1, 1, NULL, 64, "uint64");
tdesc_create_reg (feature, "g2", 2, 1, NULL, 64, "uint64");
@@ -47,18 +47,18 @@ initialize_tdesc_sparc64_solaris (void)
tdesc_create_reg (feature, "i3", 27, 1, NULL, 64, "uint64");
tdesc_create_reg (feature, "i4", 28, 1, NULL, 64, "uint64");
tdesc_create_reg (feature, "i5", 29, 1, NULL, 64, "uint64");
tdesc_create_reg (feature, "fp", 30, 1, NULL, 32, "uint64");
tdesc_create_reg (feature, "fp", 30, 1, NULL, 64, "uint64");
tdesc_create_reg (feature, "i7", 31, 1, NULL, 64, "uint64");
feature = tdesc_create_feature (result, "org.gnu.gdb.sparc.cp0");
feature = tdesc_create_feature (result.get (), "org.gnu.gdb.sparc.cp0");
tdesc_create_reg (feature, "pc", 80, 1, NULL, 64, "code_ptr");
tdesc_create_reg (feature, "npc", 81, 1, NULL, 64, "code_ptr");
tdesc_create_reg (feature, "state", 82, 1, NULL, 64, "uint64");
tdesc_create_reg (feature, "fsr", 83, 1, NULL, 32, "ieee_single");
tdesc_create_reg (feature, "fprs", 84, 1, NULL, 32, "ieee_single");
tdesc_create_reg (feature, "fsr", 83, 1, NULL, 64, "uint64");
tdesc_create_reg (feature, "fprs", 84, 1, NULL, 64, "uint64");
tdesc_create_reg (feature, "y", 85, 1, NULL, 64, "uint64");
feature = tdesc_create_feature (result, "org.gnu.gdb.sparc.fpu");
feature = tdesc_create_feature (result.get (), "org.gnu.gdb.sparc.fpu");
tdesc_create_reg (feature, "f0", 32, 1, NULL, 32, "ieee_single");
tdesc_create_reg (feature, "f1", 33, 1, NULL, 32, "ieee_single");
tdesc_create_reg (feature, "f2", 34, 1, NULL, 32, "ieee_single");
@@ -108,5 +108,5 @@ initialize_tdesc_sparc64_solaris (void)
tdesc_create_reg (feature, "f60", 78, 1, NULL, 64, "ieee_double");
tdesc_create_reg (feature, "f62", 79, 1, NULL, 64, "ieee_double");
tdesc_sparc64_solaris = result;
tdesc_sparc64_solaris = result.release ();
}

View File

@@ -5,7 +5,7 @@
#include "osabi.h"
#include "target-descriptions.h"
struct target_desc *tdesc_z80;
const struct target_desc *tdesc_z80;
static void
initialize_tdesc_z80 (void)
{

View File

@@ -108,9 +108,9 @@ enum {
int mips_linux_restart_reg_p (struct gdbarch *gdbarch);
/* Target descriptions. */
extern struct target_desc *tdesc_mips_linux;
extern struct target_desc *tdesc_mips64_linux;
extern struct target_desc *tdesc_mips_dsp_linux;
extern struct target_desc *tdesc_mips64_dsp_linux;
extern const struct target_desc *tdesc_mips_linux;
extern const struct target_desc *tdesc_mips64_linux;
extern const struct target_desc *tdesc_mips_dsp_linux;
extern const struct target_desc *tdesc_mips64_dsp_linux;
#endif /* MIPS_LINUX_TDEP_H */

View File

@@ -84,7 +84,7 @@ struct nios2_gdbarch_tdep : gdbarch_tdep_base
int jb_pc = 0;
};
extern struct target_desc *tdesc_nios2_linux;
extern struct target_desc *tdesc_nios2;
extern const struct target_desc *tdesc_nios2_linux;
extern const struct target_desc *tdesc_nios2;
#endif /* NIOS2_TDEP_H */

View File

@@ -3466,7 +3466,7 @@ struct ppc_variant
unsigned long mach;
/* Target description for this variant. */
struct target_desc **tdesc;
const struct target_desc **tdesc;
};
static struct ppc_variant variants[] =

View File

@@ -48,20 +48,20 @@ extern const struct regset s390_gs_regset;
extern const struct regset s390_gsbc_regset;
/* GNU/Linux target descriptions. */
extern struct target_desc *tdesc_s390_linux32v1;
extern struct target_desc *tdesc_s390_linux32v2;
extern struct target_desc *tdesc_s390_linux64;
extern struct target_desc *tdesc_s390_linux64v1;
extern struct target_desc *tdesc_s390_linux64v2;
extern struct target_desc *tdesc_s390_te_linux64;
extern struct target_desc *tdesc_s390_vx_linux64;
extern struct target_desc *tdesc_s390_tevx_linux64;
extern struct target_desc *tdesc_s390_gs_linux64;
extern struct target_desc *tdesc_s390x_linux64v1;
extern struct target_desc *tdesc_s390x_linux64v2;
extern struct target_desc *tdesc_s390x_te_linux64;
extern struct target_desc *tdesc_s390x_vx_linux64;
extern struct target_desc *tdesc_s390x_tevx_linux64;
extern struct target_desc *tdesc_s390x_gs_linux64;
extern const struct target_desc *tdesc_s390_linux32v1;
extern const struct target_desc *tdesc_s390_linux32v2;
extern const struct target_desc *tdesc_s390_linux64;
extern const struct target_desc *tdesc_s390_linux64v1;
extern const struct target_desc *tdesc_s390_linux64v2;
extern const struct target_desc *tdesc_s390_te_linux64;
extern const struct target_desc *tdesc_s390_vx_linux64;
extern const struct target_desc *tdesc_s390_tevx_linux64;
extern const struct target_desc *tdesc_s390_gs_linux64;
extern const struct target_desc *tdesc_s390x_linux64v1;
extern const struct target_desc *tdesc_s390x_linux64v2;
extern const struct target_desc *tdesc_s390x_te_linux64;
extern const struct target_desc *tdesc_s390x_vx_linux64;
extern const struct target_desc *tdesc_s390x_tevx_linux64;
extern const struct target_desc *tdesc_s390x_gs_linux64;
#endif /* S390_LINUX_TDEP_H */

View File

@@ -317,7 +317,7 @@ extern struct value *s390_trad_frame_prev_register
(struct frame_info *this_frame, struct trad_frame_saved_reg saved_regs[],
int regnum);
extern struct target_desc *tdesc_s390_linux32;
extern struct target_desc *tdesc_s390x_linux64;
extern const struct target_desc *tdesc_s390_linux32;
extern const struct target_desc *tdesc_s390x_linux64;
#endif /* S390_TDEP_H */

View File

@@ -1370,7 +1370,7 @@ public:
gdb_printf ("#include \"target-descriptions.h\"\n");
gdb_printf ("\n");
gdb_printf ("struct target_desc *tdesc_%s;\n", m_function);
gdb_printf ("const struct target_desc *tdesc_%s;\n", m_function);
gdb_printf ("static void\n");
gdb_printf ("initialize_tdesc_%s (void)\n", m_function);
gdb_printf ("{\n");