ChangeLog:
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 31 Jul 2009 14:39:12 +0000 (14:39 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 31 Jul 2009 14:39:12 +0000 (14:39 +0000)
commite35359c551b7ae1fb3bf1cdff1c58f3abafa07fb
tree6d9fbcaaa4c4ba6e30b644179b3c6d13164a8505
parent3a1bae8e7f6b90879682cbcd7391cb8493efb9a1
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.
gdb/ChangeLog
gdb/NEWS
gdb/arch-utils.c
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/features/gdb-target.dtd
gdb/target-descriptions.c
gdb/target-descriptions.h
gdb/xml-tdesc.c