Patch for gdb/configure.in for multiple targ_archs returned from config.bfd

Andrew Cagney ac131313@cygnus.com
Sat Jun 10 18:39:00 GMT 2000


Hans-Peter Nilsson wrote:
> 
> Doing
> ".../configure --target=powerpc-unknown-eabi && make"
> reveals that ${targ_archs} returned from config.bfd can have
> multiple *_arch:s.  Compilation fails for gdb/arch-utils.c;
> DEFAULT_BFD_ARCH is replaced by two *_arch:s.
> 
> Note that ${targ_archs} is not a default single component for
> BFD:s needs; gdb needs to select one itself.  Probably the first
> one is good enough.

Thanks.  I stared at that part of config.bfd an still managed to miss
them :-(
Patch applied.

	Andrew


> gdb/ChangeLog:
> Sat Jun 10 17:54:04 2000  Hans-Peter Nilsson  <hp@axis.com>
> 
>         * configure.in (targ_archs): Clear out secondary components.
>         * configure: Regenerate.
> 
> Index: configure.in
> ===================================================================
> RCS file: /cvs/src/src/gdb/configure.in,v
> retrieving revision 1.35
> diff -c -p -r1.35 configure.in
> *** configure.in        2000/06/09 03:35:09     1.35
> --- configure.in        2000/06/10 16:10:29
> *************** dnl use BFD to determine the default arc
> *** 80,85 ****
> --- 80,89 ----
>   dnl (bfd_vec->byteorder provides the latter).
>   targ=${target}
>   . ${srcdir}/../bfd/config.bfd
> +
> + dnl We only want the first arch, if there is more than one.
> + targ_archs=`echo ${targ_archs} | sed -e 's/ .*//;'`
> +
>   if test x"${targ_archs}" != x ; then
>       AC_DEFINE_UNQUOTED(DEFAULT_BFD_ARCH, ${targ_archs})
>   fi
> 
> brgds, H-P


More information about the Gdb-patches mailing list