From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28705 invoked by alias); 10 Apr 2012 08:02:31 -0000 Received: (qmail 28694 invoked by uid 22791); 10 Apr 2012 08:02:29 -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; Tue, 10 Apr 2012 08:02:15 +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 1SHW1h-00080T-V8; Tue, 10 Apr 2012 10:02:13 +0200 Received: from js by zzz.local with local (Exim 4.77) (envelope-from ) id 1SHW1h-0008Ex-B9; Tue, 10 Apr 2012 10:02:09 +0200 Date: Tue, 10 Apr 2012 08:02:00 -0000 From: Johannes Stezenbach To: crossgcc@sourceware.org Cc: "Yann E. MORIN" Subject: Re: [RFC PATCH] ct-ng: uClibc: add additional debug level between "minimal" and "all" Message-ID: <20120410080209.GC31613@sig21.net> References: <20120224155113.GA4298@sig21.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120224155113.GA4298@sig21.net> 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-04/txt/msg00003.txt.bz2 Hi Yann, what do you think of this patch? Thanks Johannes On Fri, Feb 24, 2012 at 04:51:13PM +0100, Johannes Stezenbach wrote: > # 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 > > -- For unsubscribe information see http://sourceware.org/lists.html#faq