diff options
author | Alan Hayward <alan.hayward@arm.com> | 2018-04-18 20:06:14 +0100 |
---|---|---|
committer | Alan Hayward <alan.hayward@arm.com> | 2018-04-18 20:08:42 +0100 |
commit | ad7fc756d12a841d4b8dd707568426d875e26755 (patch) | |
tree | ca6c99fc839789fa6d4a6d1dc6dc03a77e94dff4 /gdb/features | |
parent | d278f585afe8e096e9232b8fd80404ab5fae5719 (diff) | |
download | gdb-ad7fc756d12a841d4b8dd707568426d875e26755.zip gdb-ad7fc756d12a841d4b8dd707568426d875e26755.tar.gz gdb-ad7fc756d12a841d4b8dd707568426d875e26755.tar.bz2 |
Add feature reference in .dat files
For all targets which use the newer style target descriptions, add a
"feature" marker in the dat files.
Update regdat.sh to parse feature, but do not use it (yet).
gdb/
* features/Makefile: Add feature marker to targets with new style
target descriptions.
* regformats/aarch64.dat: Regenerate.
* regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
* regformats/i386/amd64-avx-linux.dat: Likewise.
* regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
* regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
* regformats/i386/amd64-linux.dat: Likewise.
* regformats/i386/amd64-mpx-linux.dat: Likewise.
* regformats/i386/amd64.dat: Likewise.
* regformats/i386/i386-avx-avx512-linux.dat: Likewise.
* regformats/i386/i386-avx-linux.dat: Likewise.
* regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
* regformats/i386/i386-avx-mpx-linux.dat: Likewise.
* regformats/i386/i386-linux.dat: Likewise.
* regformats/i386/i386-mmx-linux.dat: Likewise.
* regformats/i386/i386-mpx-linux.dat: Likewise.
* regformats/i386/i386.dat: Likewise.
* regformats/i386/x32-avx-avx512-linux.dat: Likewise.
* regformats/i386/x32-avx-linux.dat: Likewise.
* regformats/i386/x32-linux.dat: Likewise.
* regformats/tic6x-c62x-linux.dat: Likewise.
* regformats/tic6x-c64x-linux.dat: Likewise.
* regformats/tic6x-c64xp-linux.dat: Likewise.
* regformats/regdat.sh: Parse feature marker.
Diffstat (limited to 'gdb/features')
-rw-r--r-- | gdb/features/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/features/Makefile b/gdb/features/Makefile index 82609f5..168c46e 100644 --- a/gdb/features/Makefile +++ b/gdb/features/Makefile @@ -193,12 +193,18 @@ XMLTOC = \ TDESC_CFILES = $(patsubst %.xml,%.c,$(XMLTOC)) GDB = false +#Targets which use feature based target descriptions. +aarch64-feature = 1 +i386-feature = 1 +tic6x-feature = 1 + all: $(OUTPUTS) $(outdir)/%.dat: %.xml number-regs.xsl sort-regs.xsl gdbserver-regs.xsl echo "# THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi :set ro:" > $(outdir)/$*.tmp echo "# Generated from: $<" >> $(outdir)/$*.tmp echo "name:`echo $(notdir $*) | sed 's/-/_/g'`" >> $(outdir)/$*.tmp + $(if $($(firstword $(subst /, ,$(subst -, ,$*)))-feature), echo "feature:1") >> $(outdir)/$*.tmp echo "xmltarget:$(<F)" >> $(outdir)/$*.tmp echo "expedite:$(if $($*-expedite),$($*-expedite),$($(firstword $(subst -, ,$(notdir $*)))-expedite))" \ >> $(outdir)/$*.tmp |