Date: Fri, 29 Aug 2014 09:57:31 -0500 From: Bryan Drewery <bdrewery@FreeBSD.org> To: Konstantin Belousov <kib@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r270803 - head/libexec/rtld-elf Message-ID: <540094DB.5050307@FreeBSD.org> In-Reply-To: <201408291044.s7TAiwmI077897@svn.freebsd.org> References: <201408291044.s7TAiwmI077897@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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 > > Log: > Document the whole settings needed to build a debug version of rtld. > > Sponsored by: The FreeBSD Foundation > MFC after: 3 days > > Modified: > head/libexec/rtld-elf/Makefile > > Modified: head/libexec/rtld-elf/Makefile > ============================================================================== > --- 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$ > > +# Use the following command to build local debug version of dynamic > +# linker: > +# make DEBUG_FLAGS=-g DEBUG=-DDEBUG MK_TESTS=no all > + > .include <src.opts.mk> > MK_SSP= no > > 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? -- Regards, Bryan Drewery [-- Attachment #2 --] -----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?540094DB.5050307>
