diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-07-31 14:39:12 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-07-31 14:39:12 +0000 |
commit | e35359c551b7ae1fb3bf1cdff1c58f3abafa07fb (patch) | |
tree | 6d9fbcaaa4c4ba6e30b644179b3c6d13164a8505 /gdb/features | |
parent | 3a1bae8e7f6b90879682cbcd7391cb8493efb9a1 (diff) | |
download | gdb-e35359c551b7ae1fb3bf1cdff1c58f3abafa07fb.zip gdb-e35359c551b7ae1fb3bf1cdff1c58f3abafa07fb.tar.gz gdb-e35359c551b7ae1fb3bf1cdff1c58f3abafa07fb.tar.bz2 |
ChangeLog:
* 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.
Diffstat (limited to 'gdb/features')
-rw-r--r-- | gdb/features/gdb-target.dtd | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/features/gdb-target.dtd b/gdb/features/gdb-target.dtd index ff5d3d5..d6e7109 100644 --- a/gdb/features/gdb-target.dtd +++ b/gdb/features/gdb-target.dtd @@ -6,10 +6,10 @@ <!-- The root element of a GDB target description is <target>. --> -<!-- The osabi element was added post GDB 6.8. The version wasn't - bumped, since older GDBs silently ignore unknown elements. --> +<!-- 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?, feature*)> +<!ELEMENT target (architecture?, osabi?, compatible*, feature*)> <!ATTLIST target version CDATA #FIXED "1.0"> @@ -17,6 +17,8 @@ <!ELEMENT osabi (#PCDATA)> +<!ELEMENT compatible (#PCDATA)> + <!ELEMENT feature ((vector | union)*, reg*)> <!ATTLIST feature name ID #REQUIRED> |