This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: Patch for gdb/configure.in for multiple targ_archs returned from config.bfd
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Subject: Re: Patch for gdb/configure.in for multiple targ_archs returned from config.bfd
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Sun, 11 Jun 2000 11:37:55 +1000
- CC: gdb-patches at sourceware dot cygnus dot com
- Organization: Cygnus Solutions
- References: <200006101619.SAA23075@ignucius.axis.se>
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