public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* [RFC PATCH] ct-ng: uClibc: add additional debug level between "minimal" and "all"
@ 2012-02-24 15:51 Johannes Stezenbach
  2012-04-10  8:02 ` Johannes Stezenbach
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Johannes Stezenbach @ 2012-02-24 15:51 UTC (permalink / raw)
  To: crossgcc

# 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFC PATCH] ct-ng: uClibc: add additional debug level between "minimal" and "all"
  2012-02-24 15:51 [RFC PATCH] ct-ng: uClibc: add additional debug level between "minimal" and "all" Johannes Stezenbach
@ 2012-04-10  8:02 ` Johannes Stezenbach
  2012-04-16 21:08 ` Yann E. MORIN
  2012-04-30 16:12 ` Yann E. MORIN
  2 siblings, 0 replies; 4+ messages in thread
From: Johannes Stezenbach @ 2012-04-10  8:02 UTC (permalink / raw)
  To: crossgcc; +Cc: Yann E. MORIN

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

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFC PATCH] ct-ng: uClibc: add additional debug level between "minimal" and "all"
  2012-02-24 15:51 [RFC PATCH] ct-ng: uClibc: add additional debug level between "minimal" and "all" Johannes Stezenbach
  2012-04-10  8:02 ` Johannes Stezenbach
@ 2012-04-16 21:08 ` Yann E. MORIN
  2012-04-30 16:12 ` Yann E. MORIN
  2 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2012-04-16 21:08 UTC (permalink / raw)
  To: crossgcc; +Cc: Johannes Stezenbach

Johannes, All,

Sorry for the delay, I have been very busy with three other projects of mine:
 - kconfig-frontends, a packaging of the kconfig parser and frontends,
 - and two others, that I just started with a friend of mine, and still in
   their very young infancy, so they need great care so they get a good start
   in life. No, these are not children! ;-)

On Friday 24 February 2012 16:51:13 Johannes Stezenbach wrote:
> # 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.

Feature is OK with me. Patch looks good, too.
I will come back to this and your other patches before the end of the
week. Thank you!

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFC PATCH] ct-ng: uClibc: add additional debug level between "minimal" and "all"
  2012-02-24 15:51 [RFC PATCH] ct-ng: uClibc: add additional debug level between "minimal" and "all" Johannes Stezenbach
  2012-04-10  8:02 ` Johannes Stezenbach
  2012-04-16 21:08 ` Yann E. MORIN
@ 2012-04-30 16:12 ` Yann E. MORIN
  2 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2012-04-30 16:12 UTC (permalink / raw)
  To: crossgcc; +Cc: Johannes Stezenbach

Johannes, All,

On Friday 24 February 2012 16:51:13 Johannes Stezenbach wrote:
> # 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"

Applied as #e9a326ae9369. Thank you!

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-04-30 16:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-24 15:51 [RFC PATCH] ct-ng: uClibc: add additional debug level between "minimal" and "all" Johannes Stezenbach
2012-04-10  8:02 ` Johannes Stezenbach
2012-04-16 21:08 ` Yann E. MORIN
2012-04-30 16:12 ` Yann E. MORIN

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