public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: Johannes Stezenbach <js@sig21.net>
To: crossgcc@sourceware.org
Subject: [RFC PATCH] ct-ng: uClibc: add additional debug level between "minimal" and "all"
Date: Fri, 24 Feb 2012 15:51:00 -0000	[thread overview]
Message-ID: <20120224155113.GA4298@sig21.net> (raw)

# HG changeset patch
# User Johannes Stezenbach <js@sig21.net>
# 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 <js@sig21.net>

---
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

             reply	other threads:[~2012-02-24 15:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-24 15:51 Johannes Stezenbach [this message]
2012-04-10  8:02 ` Johannes Stezenbach
2012-04-16 21:08 ` Yann E. MORIN
2012-04-30 16:12 ` Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120224155113.GA4298@sig21.net \
    --to=js@sig21.net \
    --cc=crossgcc@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).