From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20571 invoked by alias); 24 Feb 2012 15:51:33 -0000 Received: (qmail 20560 invoked by uid 22791); 24 Feb 2012 15:51:32 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from bar.sig21.net (HELO bar.sig21.net) (80.81.252.164) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 24 Feb 2012 15:51:19 +0000 Received: from p5099b351.dip0.t-ipconnect.de ([80.153.179.81] helo=zzz.local) by bar.sig21.net with esmtpsa (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.69) (envelope-from ) id 1S0xQQ-00009B-Oy for crossgcc@sourceware.org; Fri, 24 Feb 2012 16:51:17 +0100 Received: from js by zzz.local with local (Exim 4.77) (envelope-from ) id 1S0xQP-000191-Ls for crossgcc@sourceware.org; Fri, 24 Feb 2012 16:51:13 +0100 Date: Fri, 24 Feb 2012 15:51:00 -0000 From: Johannes Stezenbach To: crossgcc@sourceware.org Subject: [RFC PATCH] ct-ng: uClibc: add additional debug level between "minimal" and "all" Message-ID: <20120224155113.GA4298@sig21.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-21-Score: -2.9 (--) X-Spam-21-Report: No, score=-2.9 required=8.0 tests=ALL_TRUSTED=-1,BAYES_00=-1.9 autolearn=ham X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00084.txt.bz2 # HG changeset patch # User Johannes Stezenbach # Date 1330096112 -3600 # Node ID f6c14b7a05a277baf06d9eb9f8dd0305b60d6449 # Parent 9eabd89158098d1be51c45f46120092df0e78097 uClibc: add additional debug level between "minimal" and "all" During application development it is desirable to enable malloc debugging and LD_DEBUG support, but the extensive debug spew from SUPPORT_LD_DEBUG_EARLY is only useful when working on uClibc's ld.so. Signed-off-by: Johannes Stezenbach --- with "all" every dynamically linked app prints a spew of ld.so internal debug messages, it's not normally useful not sure about the "normal" name, maybe "application development" would be better... diff -r 9eabd8915809 -r f6c14b7a05a2 config/libc/uClibc.in --- a/config/libc/uClibc.in Thu Feb 23 16:33:58 2012 +0100 +++ b/config/libc/uClibc.in Fri Feb 24 16:08:32 2012 +0100 @@ -166,6 +166,10 @@ config LIBC_UCLIBC_DEBUG_LEVEL_2 bool + prompt "normal" + +config LIBC_UCLIBC_DEBUG_LEVEL_3 + bool prompt "all" endchoice diff -r 9eabd8915809 -r f6c14b7a05a2 scripts/build/libc/uClibc.sh --- a/scripts/build/libc/uClibc.sh Thu Feb 23 16:33:58 2012 +0100 +++ b/scripts/build/libc/uClibc.sh Fri Feb 24 16:08:32 2012 +0100 @@ -528,6 +528,16 @@ 2) cat <<-ENDSED s/^# DODEBUG is not set.*/DODEBUG=y/ + s/^DODEBUG_PT=y/# DODEBUG_PT is not set/ + s/^# DOASSERTS is not set.*/DOASSERTS=y/ + s/^# SUPPORT_LD_DEBUG is not set.*/SUPPORT_LD_DEBUG=y/ + s/^SUPPORT_LD_DEBUG_EARLY=y/# SUPPORT_LD_DEBUG_EARLY is not set/ + s/^# UCLIBC_MALLOC_DEBUGGING is not set/UCLIBC_MALLOC_DEBUGGING=y/ + ENDSED + ;; + 3) + cat <<-ENDSED + s/^# DODEBUG is not set.*/DODEBUG=y/ s/^# DODEBUG_PT is not set.*/DODEBUG_PT=y/ s/^# DOASSERTS is not set.*/DOASSERTS=y/ s/^# SUPPORT_LD_DEBUG is not set.*/SUPPORT_LD_DEBUG=y/ -- For unsubscribe information see http://sourceware.org/lists.html#faq