diff options
author | Alan Hayward <alan.hayward@arm.com> | 2019-06-20 08:38:18 +0100 |
---|---|---|
committer | Alan Hayward <alan.hayward@arm.com> | 2019-07-10 14:20:49 +0100 |
commit | 89abbcc26d891425678b8b463bc1fa81273fb54c (patch) | |
tree | 129fb2faf4d44ec2315992cdbb42fba107176107 /gdb/features/Makefile | |
parent | b863685d70199489b3fe27abedfb1eb6d1452b7d (diff) | |
download | gdb-89abbcc26d891425678b8b463bc1fa81273fb54c.zip gdb-89abbcc26d891425678b8b463bc1fa81273fb54c.tar.gz gdb-89abbcc26d891425678b8b463bc1fa81273fb54c.tar.bz2 |
Arm: Create feature files for Arm target descriptions
Add Arm to the list of feature target description targets and generate the
relevant C files.
Add arm-m-profile-with-fpa.xml as the feature version of the exisiting
arm-with-m-fpa-layout.xml.
Add extra comments to the Makefile for readability.
New files are not yet used.
gdb/ChangeLog:
* features/Makefile: Use feature target descriptions for Arm.
* features/arm/arm-core.c: Generate new file.
* features/arm/arm-fpa.c: Likewise.
* features/arm/arm-m-profile-with-fpa.xml: Likewise.
* features/arm/arm-m-profile.c: Likewise.
* features/arm/arm-vfpv2.c: Likewise.
* features/arm/arm-vfpv3.c: Likewise.
* features/arm/xscale-iwmmxt.c: Likewise.
* target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
Diffstat (limited to 'gdb/features/Makefile')
-rw-r--r-- | gdb/features/Makefile | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/gdb/features/Makefile b/gdb/features/Makefile index 3b57124..0c84faf 100644 --- a/gdb/features/Makefile +++ b/gdb/features/Makefile @@ -38,11 +38,12 @@ # # make GDB=/path/to/gdb clean-cfiles cfiles # -# To generate specific C files, you can override the XMLTOC make -# variable: +# To generate specific C files, you can override the XMLTOC and +# FEATURE_XMLFILES make variables: # -# make GDB=/path/to/gdb XMLTOC="xml files" cfiles +# make GDB=/path/to/gdb XMLTOC="xml files" FEATURE_XMLFILES="xml files" cfiles +# List of .dat files to create in ../regformats/ WHICH = arm/arm-with-iwmmxt arm/arm-with-vfpv2 arm/arm-with-vfpv3 \ arm/arm-with-neon \ mips-linux mips-dsp-linux \ @@ -103,20 +104,14 @@ XSLTPROC = xsltproc outdir = ../regformats OUTPUTS = $(patsubst %,$(outdir)/%.dat,$(WHICH)) -# The set of xml files we'll generate .c files for GDB from. By +# For targets without feature based target descriptions, +# the set of xml files we'll generate .c files for GDB from. By # default we'll build all .c files, which requires an # --enable-targets=all GDB. You can override this by passing XMLTOC # to make on the command line. XMLTOC = \ arc-v2.xml \ arc-arcompact.xml \ - arm/arm-with-iwmmxt.xml \ - arm/arm-with-m-fpa-layout.xml \ - arm/arm-with-m-vfp-d16.xml \ - arm/arm-with-m.xml \ - arm/arm-with-neon.xml \ - arm/arm-with-vfpv2.xml \ - arm/arm-with-vfpv3.xml \ microblaze-with-stack-protect.xml \ microblaze.xml \ mips-dsp-linux.xml \ @@ -189,6 +184,7 @@ GDB = false #Targets which use feature based target descriptions. aarch64-feature = 1 +arm-feature = 1 i386-feature = 1 riscv-feature = 1 tic6x-feature = 1 @@ -208,9 +204,18 @@ $(outdir)/%.dat: %.xml number-regs.xsl sort-regs.xsl gdbserver-regs.xsl $(XSLTPROC) gdbserver-regs.xsl - >> $(outdir)/$*.tmp sh ../../move-if-change $(outdir)/$*.tmp $(outdir)/$*.dat +# For targets with feature based target descriptions, +# the set of xml files we'll generate .c files for GDB from. FEATURE_XMLFILES = aarch64-core.xml \ aarch64-fpu.xml \ aarch64-pauth.xml \ + arm/arm-core.xml \ + arm/arm-fpa.xml \ + arm/arm-m-profile.xml \ + arm/arm-m-profile-with-fpa.xml \ + arm/arm-vfpv2.xml \ + arm/arm-vfpv3.xml \ + arm/xscale-iwmmxt.xml \ i386/32bit-core.xml \ i386/32bit-sse.xml \ i386/32bit-linux.xml \ @@ -263,9 +268,6 @@ $(FEATURE_CFILES): %.c: %.xml.tmp echo "</target>" >> $@.tmp sh ../../move-if-change $@.tmp $@ -# Other dependencies. -$(outdir)/arm/arm-with-iwmmxt.dat: arm/arm-core.xml arm/xscale-iwmmxt.xml - # Regenerate RISC-V CSR feature lists. riscv/32bit-csr.xml riscv/64bit-csr.xml: ../../include/opcode/riscv-opc.h ./riscv/rebuild-csr-xml.sh ../../include/opcode/riscv-opc.h ./riscv |