mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
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.
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user