Subject: Re: Can't build with gdb6 due to /usr/bin/psim
To: Makoto Fujiwara <makoto@ki.nu>
From: Luke Mewburn <lukem@NetBSD.org>
List: current-users
Date: 08/02/2006 11:35:58
--bgLLobvf7eP6VP5c
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jul 31, 2006 at 12:09:24AM +0900, Makoto Fujiwara wrote:
  | I had just been working on the same problem. My patch=20
  | to this problem for (2006-07-28-UTC) is attached.
  |=20
  | Index: distrib/sets/sets.subr
  | =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
  | RCS file: /export/cvsync/src/distrib/sets/sets.subr,v
  | retrieving revision 1.53
  | diff -u -a -r1.53 sets.subr
  | --- distrib/sets/sets.subr	23 Jul 2006 11:41:24 -0000	1.53
  | +++ distrib/sets/sets.subr	30 Jul 2006 14:03:29 -0000
  | @@ -423,6 +423,14 @@
  |  		fi
  |  	fi
  | =20
  | +	if [ "${HAVE_GDB}" =3D "6" ]; then
  | +	    if [ -f $setdir/gdb6.mi ]; then
  | +		echo $setdir/gdb6.mi
  | +	    fi
  | +	    if [ -f $setdir/gdb6.ad.${MACHINE_CPU} ]; then
  | +		echo $setdir/gdb6.ad.${MACHINE_CPU}
  | +	    fi
  | +	fi
  |  	if [ -f $setdir/rescue.mi ]; then
  |  		echo $setdir/rescue.mi
  |  	fi

This isn't necessary.

I enhanced the set list infrastructure to improve the support for
the HAVE_GCC and HAVE_GDB build variables, and this was committed
to -current on 2006/07/12.  We use this via new set keywords.



  | Index: distrib/sets/lists/comp/gdb6.ad.powerpc
  | =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
  | RCS file: distrib/sets/lists/comp/gdb6.ad.powerpc
  | diff -N distrib/sets/lists/comp/gdb6.ad.powerpc
  | --- /dev/null	1 Jan 1970 00:00:00 -0000
  | +++ distrib/sets/lists/comp/gdb6.ad.powerpc	30 Jul 2006 14:02:34 -0000
  | @@ -0,0 +1,2 @@
  | +# $NetBSD$
  | +./usr/bin/psim					comp-debug-bin		gdb

I've added an entry to comp/ad.powerpc for psim.

Please update your sources and try again.

You can test build a platform with the new gdb without
editing bsd.own.mk; invoke build.sh with  pass -V HAVE_GDB=3D6


cheers,
Luke.

--bgLLobvf7eP6VP5c
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)

iD8DBQFE0AF+pBhtmn8zJHIRAkjRAKDTCSnJu6j5wcNGlNk4XaBypwhpIACg02+V
gJXjecYLsUelNQUnOswTl1I=
=KFAl
-----END PGP SIGNATURE-----

--bgLLobvf7eP6VP5c--