From e35359c551b7ae1fb3bf1cdff1c58f3abafa07fb Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Fri, 31 Jul 2009 14:39:12 +0000 Subject: ChangeLog: * features/gdb-target.dtd (target): Accept optional 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 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 element of target descriptions. doc/ChangeLog: * gdb.texinfo (Target Descriptions): Document element. --- gdb/doc/ChangeLog | 4 ++++ gdb/doc/gdb.texinfo | 34 +++++++++++++++++++++++++++++++--- 2 files changed, 35 insertions(+), 3 deletions(-) (limited to 'gdb/doc') diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index a544bc1..7afbca0 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2009-07-31 Ulrich Weigand + + * gdb.texinfo (Target Descriptions): Document element. + 2009-07-28 Daniel Jacobowitz * gdb.texinfo (ARM Features): Document org.gnu.gdb.arm.vfp and diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 3bb35b6..586f459 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -30807,6 +30807,7 @@ are explained further below. @r{[}@var{architecture}@r{]} @r{[}@var{osabi}@r{]} + @r{[}@var{compatible}@r{]} @r{[}@var{feature}@dots{}@r{]} @end smallexample @@ -30858,9 +30859,8 @@ An @samp{} element has this form: @var{arch} @end smallexample -@var{arch} is an architecture name from the same selection -accepted by @code{set architecture} (@pxref{Targets, ,Specifying a -Debugging Target}). +@var{arch} is one of the architectures from the set accepted by +@code{set architecture} (@pxref{Targets, ,Specifying a Debugging Target}). @subsection OS ABI @cindex @code{} @@ -30877,6 +30877,34 @@ An @samp{} element has this form: @var{abi-name} is an OS ABI name from the same selection accepted by @w{@code{set osabi}} (@pxref{ABI, ,Configuring the Current ABI}). +@subsection Compatible Architecture +@cindex @code{} + +This optional field was introduced in @value{GDBN} version 7.0. +Previous versions of @value{GDBN} ignore it. + +A @samp{} element has this form: + +@smallexample + @var{arch} +@end smallexample + +@var{arch} is one of the architectures from the set accepted by +@code{set architecture} (@pxref{Targets, ,Specifying a Debugging Target}). + +A @samp{} element is used to specify that the target +is able to run binaries in some other than the main target architecture +given by the @samp{} element. For example, on the +Cell Broadband Engine, the main architecture is @code{powerpc:common} +or @code{powerpc:common64}, but the system is able to run binaries +in the @code{spu} architecture as well. The way to describe this +capability with @samp{} is as follows: + +@smallexample + powerpc:common + spu +@end smallexample + @subsection Features @cindex -- cgit v1.1