mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
e35359c551
* features/gdb-target.dtd (target): Accept optional <compatible> elements. (compatible): Define element. * target-descriptions.h (tdesc_compatible_p): New. (tdesc_add_compatible): New. * target-descriptions.c (arch_p): New VEC_P type. (struct target_desc): New member compatible. (free_target_description): Handle it. (maint_print_c_tdesc_cmd): Likewise. (tdesc_compatible_p): New function. (tdesc_add_compatible): New function. * xml-tdesc.c (tdesc_end_compatible): New function. (target_children): Handle <compatible> element. * arch-utils.c (choose_architecture_for_target): Accept target description instead of BFD architecture as input. Query target description for compatible architectures. (gdbarch_info_fill): Update call. * NEWS: Mention <compatible> element of target descriptions. doc/ChangeLog: * gdb.texinfo (Target Descriptions): Document <compatible> element.
53 lines
1.3 KiB
DTD
53 lines
1.3 KiB
DTD
<!-- Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
|
|
|
|
Copying and distribution of this file, with or without modification,
|
|
are permitted in any medium without royalty provided the copyright
|
|
notice and this notice are preserved. -->
|
|
|
|
<!-- The root element of a GDB target description is <target>. -->
|
|
|
|
<!-- The osabi and compatible elements were added post GDB 6.8. The version
|
|
wasn't bumped, since older GDBs silently ignore unknown elements. -->
|
|
|
|
<!ELEMENT target (architecture?, osabi?, compatible*, feature*)>
|
|
<!ATTLIST target
|
|
version CDATA #FIXED "1.0">
|
|
|
|
<!ELEMENT architecture (#PCDATA)>
|
|
|
|
<!ELEMENT osabi (#PCDATA)>
|
|
|
|
<!ELEMENT compatible (#PCDATA)>
|
|
|
|
<!ELEMENT feature ((vector | union)*, reg*)>
|
|
<!ATTLIST feature
|
|
name ID #REQUIRED>
|
|
|
|
<!ELEMENT reg (description*)>
|
|
<!ATTLIST reg
|
|
name CDATA #REQUIRED
|
|
bitsize CDATA #REQUIRED
|
|
regnum CDATA #IMPLIED
|
|
save-restore (yes | no) 'yes'
|
|
type CDATA 'int'
|
|
group CDATA #IMPLIED
|
|
>
|
|
|
|
<!ELEMENT vector EMPTY>
|
|
<!ATTLIST vector
|
|
id CDATA #REQUIRED
|
|
type CDATA #REQUIRED
|
|
count CDATA #REQUIRED>
|
|
|
|
<!ELEMENT union (field+)>
|
|
<!ATTLIST union
|
|
id CDATA #REQUIRED>
|
|
|
|
<!ELEMENT field EMPTY>
|
|
<!ATTLIST field
|
|
name CDATA #REQUIRED
|
|
type CDATA #REQUIRED>
|
|
|
|
<!ENTITY % xinclude SYSTEM "xinclude.dtd">
|
|
%xinclude;
|