binutils-gdb/gdb/features
Anton Kolesov 817a758576 arc: Migrate to new target features
This patch replaces usage of target descriptions in ARC, where the whole
description is fixed in XML, with new target descriptions where XML describes
individual features, and GDB assembles those features into actual target
description.

v2:
Removed arc.c from ALLDEPFILES in gdb/Makefile.in.
Removed vim modeline from arc-tdep.c to have it in a separate patch.
Removed braces from one line "if/else".
Undid the type change for "jb_pc" (kept it as "int").
Joined the unnecessary line breaks into one line.
No more moving around arm targets in gdb/features/Makefile.
Changed pattern checking for ARC features from "arc/{aux,core}" to "arc/".

v3:
Added include gaurds to arc.h.
Added arc_read_description to _create_ target descriptions less.

v4:
Got rid of ARC_SYS_TYPE_NONE.
Renamed ARC_SYS_TYPE_INVALID to ARC_SYS_TYPE_NUM.
Fixed a few indentations/curly braces.
Converted arc_sys_type_to_str from a macro to an inline function.

gdb/ChangeLog:
2020-03-16  Anton Kolesov  <anton.kolesov@synopsys.com>
	    Shahab Vahedi  <shahab@synopsys.com>

	* Makefile.in: Add arch/arc.o
	* configure.tgt: Likewise.
	* arc-tdep.c (arc_tdesc_init): Use arc_read_description.
	(_initialize_arc_tdep): Don't initialize old target descriptions.
        (arc_read_description): New function to cache target descriptions.
	* arc-tdep.h (arc_read_description): Add proto type.
	* arch/arc.c: New file.
	* arch/arc.h: Likewise.
	* features/Makefile: Replace old target descriptions with new.
	* features/arc-arcompact.c: Remove.
	* features/arc-arcompact.xml: Likewise.
	* features/arc-v2.c: Likewise
	* features/arc-v2.xml: Likewise
	* features/arc/aux-arcompact.xml: New file.
	* features/arc/aux-v2.xml: Likewise.
	* features/arc/core-arcompact.xml: Likewise.
	* features/arc/core-v2.xml: Likewise.
	* features/arc/aux-arcompact.c: Generate.
	* features/arc/aux-v2.c: Likewise.
	* features/arc/core-arcompact.c: Likewise.
	* features/arc/core-v2.c: Likewise.
	* target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
2020-03-16 22:53:10 +01:00
..
arc arc: Migrate to new target features 2020-03-16 22:53:10 +01:00
arm Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
i386 Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
riscv RISC-V: Support the ISA-dependent CSR checking. 2020-02-20 16:49:09 -08:00
rs6000 Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
sparc Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
Makefile arc: Migrate to new target features 2020-03-16 22:53:10 +01:00
aarch64-core.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
aarch64-core.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
aarch64-fpu.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
aarch64-fpu.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
aarch64-pauth.c Regenerate aarch64-pauth.c 2019-07-10 11:47:13 +01:00
aarch64-pauth.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
aarch64-sve.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
btrace-conf.dtd Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
btrace.dtd Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
feature_to_c.sh Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
gdb-target.dtd Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
gdbserver-regs.xsl
library-list-aix.dtd Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
library-list-svr4.dtd Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
library-list.dtd Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
m68k-core.xml
microblaze-core.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
microblaze-stack-protect.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
microblaze-with-stack-protect.c
microblaze-with-stack-protect.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
microblaze.c
microblaze.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mips-cp0.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mips-cpu.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mips-dsp-linux.c
mips-dsp-linux.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mips-dsp.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mips-fpu.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mips-linux.c
mips-linux.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mips64-cp0.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mips64-cpu.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mips64-dsp-linux.c
mips64-dsp-linux.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mips64-dsp.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mips64-fpu.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mips64-linux.c
mips64-linux.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
nds32-core.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
nds32-fpu.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
nds32-system.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
nds32.c
nds32.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
nios2-cpu.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
nios2-linux.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
nios2.c
nios2.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
number-regs.xsl
or1k-core.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
or1k.c
or1k.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
osdata.dtd Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
rx.c Convert the RX target to make use of target descriptions. 2019-08-25 17:00:08 +09:00
rx.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390-acr.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390-core32.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390-core64.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390-fpr.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390-gs-linux64.c
s390-gs-linux64.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390-gs.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390-gsbc.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390-linux32.c
s390-linux32.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390-linux32v1.c
s390-linux32v1.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390-linux32v2.c
s390-linux32v2.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390-linux64.c
s390-linux64.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390-linux64v1.c
s390-linux64v1.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390-linux64v2.c
s390-linux64v2.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390-tdb.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390-te-linux64.c
s390-te-linux64.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390-tevx-linux64.c
s390-tevx-linux64.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390-vx-linux64.c
s390-vx-linux64.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390-vx.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390x-core64.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390x-gs-linux64.c
s390x-gs-linux64.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390x-linux64.c
s390x-linux64.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390x-linux64v1.c
s390x-linux64v1.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390x-linux64v2.c
s390x-linux64v2.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390x-te-linux64.c
s390x-te-linux64.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390x-tevx-linux64.c
s390x-tevx-linux64.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
s390x-vx-linux64.c
s390x-vx-linux64.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
sort-regs.xsl
threads.dtd Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tic6x-c6xp.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
tic6x-c6xp.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tic6x-c62x-linux.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tic6x-c64x-linux.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tic6x-c64xp-linux.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tic6x-core.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
tic6x-core.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
tic6x-gp.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
tic6x-gp.xml Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
traceframe-info.dtd Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
xinclude.dtd Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00