From owner-svn-src-head@FreeBSD.ORG Fri Aug 29 14:57:43 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 68EFC25A for ; Fri, 29 Aug 2014 14:57:43 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 45BC218CE for ; Fri, 29 Aug 2014 14:57:43 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.9/8.14.9) with ESMTP id s7TEvh5K035208 for ; Fri, 29 Aug 2014 14:57:43 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.9/8.14.9/Submit) id s7TEvh5M035201 for svn-src-head@freebsd.org; Fri, 29 Aug 2014 14:57:43 GMT (envelope-from bdrewery) Received: (qmail 20741 invoked from network); 29 Aug 2014 09:57:41 -0500 Received: from unknown (HELO ?10.10.0.24?) (freebsd@shatow.net@10.10.0.24) by sweb.xzibition.com with ESMTPA; 29 Aug 2014 09:57:41 -0500 Message-ID: <540094DB.5050307@FreeBSD.org> Date: Fri, 29 Aug 2014 09:57:31 -0500 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Konstantin Belousov , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r270803 - head/libexec/rtld-elf References: <201408291044.s7TAiwmI077897@svn.freebsd.org> In-Reply-To: <201408291044.s7TAiwmI077897@svn.freebsd.org> OpenPGP: id=6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ackJmqinc8RTcismvILBwATfNxK5XgXWk" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2014 14:57:43 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ackJmqinc8RTcismvILBwATfNxK5XgXWk Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 8/29/2014 5:44 AM, Konstantin Belousov wrote: > Author: kib > Date: Fri Aug 29 10:44:58 2014 > New Revision: 270803 > URL: http://svnweb.freebsd.org/changeset/base/270803 >=20 > Log: > Document the whole settings needed to build a debug version of rtld. > =20 > Sponsored by: The FreeBSD Foundation > MFC after: 3 days >=20 > Modified: > head/libexec/rtld-elf/Makefile >=20 > Modified: head/libexec/rtld-elf/Makefile > =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=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/libexec/rtld-elf/Makefile Fri Aug 29 10:43:56 2014 (r270802) > +++ head/libexec/rtld-elf/Makefile Fri Aug 29 10:44:58 2014 (r270803) > @@ -1,5 +1,9 @@ > # $FreeBSD$ > =20 > +# Use the following command to build local debug version of dynamic > +# linker: > +# make DEBUG_FLAGS=3D-g DEBUG=3D-DDEBUG MK_TESTS=3Dno all > + > .include > MK_SSP=3D no > =20 >=20 How difficult would it be to allow DEBUG to be set during runtime like GNU's can with LD_DEBUG? I have found GNU's LD_DEBUG to be very useful for userland debugging, especially when using dlopen(3). We have LD_DEBUG environment variable but it only prints if built with -DDEBUG. Is there a concern about performance by enabling this based only on environment? --=20 Regards, Bryan Drewery --ackJmqinc8RTcismvILBwATfNxK5XgXWk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iQEcBAEBAgAGBQJUAJTbAAoJEDXXcbtuRpfP3pMIAKta+m0oCFuEzhrAipaBDtrO pYEkagtSQEhlYfn4Z08zkaw2MvDGTYaMLC7UVnz40oNKTXyGWfbMgMzCFXcxA4AY UvAtWWE3QlTMbk1hL+CIT7Nr07nrv4w3vh4Ve0aDDdkI0dK1S6lRgFVL0cPEDwXF Vybbqw3UvJx/2o5rmrfBOLHfW23sxD6bXe+ob/5WNjhtzPLRIltrzTkBEi11ghf4 wnrGOe2MvFGpMeQgOxDm2K7yRPe6r7Gstpoe0Hvv607hGb7fR+ur3pTwUyfoDOlb md87NDyNKN7YtC2n0XoEyfQKv8NYKVpIQVYlrD+72ADgbFH1hUTk/jQZUryP2gw= =79lZ -----END PGP SIGNATURE----- --ackJmqinc8RTcismvILBwATfNxK5XgXWk--