svn commit: r270803 - head/libexec/rtld-elf
Bryan Drewery
bdrewery at FreeBSD.org
Fri Aug 29 14:57:43 UTC 2014
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20140829/de5aedc0/attachment.sig>
More information about the svn-src-head
mailing list