# HG changeset patch # User Johannes Stezenbach # Date 1330096112 -3600 # Node ID e9a326ae936964bb3d74d5b6fe1c7d361faf8020 # Parent 10cc39ae5c6bbdb82724f2572c6098ec3d8d6d1c 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 diff -r 10cc39ae5c6b -r e9a326ae9369 config/libc/uClibc.in --- a/config/libc/uClibc.in Mon Apr 30 17:36:00 2012 +0200 +++ b/config/libc/uClibc.in Fri Feb 24 16:08:32 2012 +0100 @@ -172,6 +172,10 @@ config LIBC_UCLIBC_DEBUG_LEVEL_2 bool + prompt "normal" + +config LIBC_UCLIBC_DEBUG_LEVEL_3 + bool prompt "all" endchoice diff -r 10cc39ae5c6b -r e9a326ae9369 scripts/build/libc/uClibc.sh --- a/scripts/build/libc/uClibc.sh Mon Apr 30 17:36:00 2012 +0200 +++ 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/