libc/uClibc: add additional debug level between "minimal" and "all"
authorJohannes Stezenbach <js@sig21.net>
Fri Feb 24 16:08:32 2012 +0100 (2012-02-24)
changeset 2951e9a326ae9369
parent 2950 10cc39ae5c6b
child 2952 d20da3fd340e
libc/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>
config/libc/uClibc.in
scripts/build/libc/uClibc.sh
     1.1 --- a/config/libc/uClibc.in	Mon Apr 30 17:36:00 2012 +0200
     1.2 +++ b/config/libc/uClibc.in	Fri Feb 24 16:08:32 2012 +0100
     1.3 @@ -172,6 +172,10 @@
     1.4  
     1.5  config LIBC_UCLIBC_DEBUG_LEVEL_2
     1.6      bool
     1.7 +    prompt "normal"
     1.8 +
     1.9 +config LIBC_UCLIBC_DEBUG_LEVEL_3
    1.10 +    bool
    1.11      prompt "all"
    1.12  
    1.13  endchoice
     2.1 --- a/scripts/build/libc/uClibc.sh	Mon Apr 30 17:36:00 2012 +0200
     2.2 +++ b/scripts/build/libc/uClibc.sh	Fri Feb 24 16:08:32 2012 +0100
     2.3 @@ -528,6 +528,16 @@
     2.4        2)
     2.5          cat <<-ENDSED
     2.6  			s/^# DODEBUG is not set.*/DODEBUG=y/
     2.7 +			s/^DODEBUG_PT=y/# DODEBUG_PT is not set/
     2.8 +			s/^# DOASSERTS is not set.*/DOASSERTS=y/
     2.9 +			s/^# SUPPORT_LD_DEBUG is not set.*/SUPPORT_LD_DEBUG=y/
    2.10 +			s/^SUPPORT_LD_DEBUG_EARLY=y/# SUPPORT_LD_DEBUG_EARLY is not set/
    2.11 +			s/^# UCLIBC_MALLOC_DEBUGGING is not set/UCLIBC_MALLOC_DEBUGGING=y/
    2.12 +			ENDSED
    2.13 +        ;;
    2.14 +      3)
    2.15 +        cat <<-ENDSED
    2.16 +			s/^# DODEBUG is not set.*/DODEBUG=y/
    2.17  			s/^# DODEBUG_PT is not set.*/DODEBUG_PT=y/
    2.18  			s/^# DOASSERTS is not set.*/DOASSERTS=y/
    2.19  			s/^# SUPPORT_LD_DEBUG is not set.*/SUPPORT_LD_DEBUG=y/