diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2009-09-15 14:18:15 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2009-09-15 14:18:15 +0000 |
commit | 388d6b8194689ea1c7a337f81c9bd19b17d1635d (patch) | |
tree | adfdba82696e70936c1b2923e418c88977093394 | |
parent | 6496c923c4d65766e32600a1efdf1fb4fc02921b (diff) |
Add CONFIG_DEBUG_SYMBOLS
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@2053 7fd9a85b-ad96-42d3-883c-3090e2eb8679
108 files changed, 284 insertions, 107 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index 7269302d63..9ebb96cce0 100644 --- a/nuttx/ChangeLog +++ b/nuttx/ChangeLog @@ -866,3 +866,5 @@ * net/net_tcppoll.c. Removed an unnecessary check for outstanding, un-ACKed data. The NuttX socket layer keeps track of ACKs and doesn't need this check; removing the check should improve write throughput + * Add DEBUG configuration option to enable debug console output without disabling + optimization (and vice versa) diff --git a/nuttx/Documentation/NuttX.html b/nuttx/Documentation/NuttX.html index fdc628d49c..dd13cb7998 100644 --- a/nuttx/Documentation/NuttX.html +++ b/nuttx/Documentation/NuttX.html @@ -8,7 +8,7 @@ <tr align="center" bgcolor="#e4e4e4"> <td> <h1><big><font color="#3c34ec"><i>NuttX RTOS</i></font></big></h1> - <p>Last Updated: September 11, 2009</p> + <p>Last Updated: September 15, 2009</p> </td> </tr> </table> @@ -1527,6 +1527,8 @@ nuttx-0.4.11 2009-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> * net/net_tcppoll.c. Removed an unnecessary check for outstanding, un-ACKed data. The NuttX socket layer keeps track of ACKs and doesn't need this check; removing the check should improve write throughput + * Add DEBUG configuration option to enable debug console output without disabling + optimization (and vice versa) pascal-0.1.3 2009-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> diff --git a/nuttx/Documentation/NuttxPortingGuide.html b/nuttx/Documentation/NuttxPortingGuide.html index 6fe556c6cb..a9bf7df8d3 100644 --- a/nuttx/Documentation/NuttxPortingGuide.html +++ b/nuttx/Documentation/NuttxPortingGuide.html @@ -12,7 +12,7 @@ <h1><big><font color="#3c34ec"> <i>NuttX RTOS Porting Guide</i> </font></big></h1> - <p>Last Updated: September 11, 2009</p> + <p>Last Updated: September 15, 2009</p> </td> </tr> </table> @@ -2005,6 +2005,9 @@ extern void up_ledoff(int led); <code>CONFIG_DEBUG_VERBOSE</code>: enables verbose debug output </li> <li> + <code>CONFIG_DEBUG_SYMBOLS</code>: build without optimization and with debug symbols (needed for use with a debugger). + </li> + <li> <code>CONFIG_DEBUG_SCHED</code>: enable OS debug output (disabled by default) </li> <li> @@ -2014,12 +2017,21 @@ extern void up_ledoff(int led); <code>CONFIG_DEBUG_NET</code>: enable network debug output (disabled by default) </li> <li> + <code>CONFIG_DEBUG_USB</code>: enable USB debug output (disabled by default) + </li> + <li> <code>CONFIG_DEBUG_FS</code>: enable file system debug output (disabled by default) </li> <li> <code>CONFIG_DEBUG_LIB</code>: enable C library debug output (disabled by default) </li> <li> + <code>CONFIG_DEBUG_BINFMT</code>: enable binary loader debug output (disabled by default) + </li> + <li> + <code>CONFIG_DEBUG_GRAPHICS</code>: enable NX graphics debug output (disabled by default) + </li> + <li> <code>CONFIG_ARCH_LOWPUTC</code>: architecture supports low-level, boot time console output </li> diff --git a/nuttx/TODO b/nuttx/TODO index de7f334aa1..950fec14b5 100644 --- a/nuttx/TODO +++ b/nuttx/TODO @@ -1,5 +1,5 @@ -NuttX TODO List (Last updated September 12, 2009) -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +NuttX TODO List (Last updated September 15, 2009) +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (5) Task/Scheduler (sched/) (2) Memory Managment (mm/) @@ -14,7 +14,7 @@ NuttX TODO List (Last updated September 12, 2009) (2) Graphics subystem (graphics/) (1) Pascal add-on (pcode/) (1) Documentation (Documentation/) - (6) Build system / Toolchains + (5) Build system / Toolchains (3) NuttShell (NSH) (examples/nsh) (3) Other Applications & Tests (examples/) (2) Linux/Cywgin simulation (arch/sim) @@ -400,13 +400,6 @@ o Build system Status: Open Priority: Medium (maybe higher for z80 target) - Description: It would be nice to de-couple some of the behaviors enabled by - CONFIG_DEBUG. For example, CONFIG_DEBUG turns on debug output, - but also disables optimization make the binary much bigger. - Status: Open - Priority: Low. There workaround is easy.. just edit the configuration's - Make.def file to control the behavior that you want. - Description: Need a NuttX configuration tool. The number of configuration settings has become quite large and difficult to manage manually. Status: Open diff --git a/nuttx/configs/README.txt b/nuttx/configs/README.txt index 9418f6ea8a..7e21e90642 100644 --- a/nuttx/configs/README.txt +++ b/nuttx/configs/README.txt @@ -163,16 +163,24 @@ defconfig -- This is a configuration file similar to the Linux that will be used in the build CONFIG_DEBUG - enables built-in debug options CONFIG_DEBUG_VERBOSE - enables verbose debug output + CONFIG_DEBUG_SYMBOLS - build without optimization and with + debug symbols (needed for use with a debugger). CONFIG_DEBUG_SCHED - enable OS debug output (disabled by default) CONFIG_DEBUG_MM - enable memory management debug output (disabled by default) CONFIG_DEBUG_NET - enable network debug output (disabled by default) + CONFIG_DEBUG_USB - enable usb debug output (disabled by + default) CONFIG_DEBUG_FS - enable filesystem debug output (disabled by default) CONFIG_DEBUG_LIB - enable C library debug output (disabled by default) + CONFIG_DEBUG_BINFMT - enable binary loader debug output (disabled + by default) + CONFIG_DEBUG_GRAPHICS - enable NX graphics debug output + (disabled by default) CONFIG_ARCH_LOWPUTC - architecture supports low-level, boot time console output CONFIG_MM_REGIONS - If the architecture includes multiple diff --git a/nuttx/configs/c5471evm/Make.defs b/nuttx/configs/c5471evm/Make.defs index 94a853b627..355df39710 100644 --- a/nuttx/configs/c5471evm/Make.defs +++ b/nuttx/configs/c5471evm/Make.defs @@ -47,7 +47,7 @@ OBJDUMP = $(CROSSDEV)objdump ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'} ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = -Os -fno-strict-aliasing -fno-strength-reduce \ @@ -81,7 +81,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") LDFLAGS += -g endif diff --git a/nuttx/configs/c5471evm/defconfig b/nuttx/configs/c5471evm/defconfig index b5c16baa68..6078b238f6 100644 --- a/nuttx/configs/c5471evm/defconfig +++ b/nuttx/configs/c5471evm/defconfig @@ -139,6 +139,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -201,6 +203,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=ostest CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=200 diff --git a/nuttx/configs/c5471evm/dhcpconfig b/nuttx/configs/c5471evm/dhcpconfig index e631b739c9..517fb82e91 100644 --- a/nuttx/configs/c5471evm/dhcpconfig +++ b/nuttx/configs/c5471evm/dhcpconfig @@ -139,6 +139,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -201,6 +203,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=uip CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=200 diff --git a/nuttx/configs/c5471evm/netconfig b/nuttx/configs/c5471evm/netconfig index 0d0feed91e..dacc7d8b83 100644 --- a/nuttx/configs/c5471evm/netconfig +++ b/nuttx/configs/c5471evm/netconfig @@ -139,6 +139,8 @@ CONFIG_NET_C5471_BASET10=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -201,6 +203,7 @@ CONFIG_NET_C5471_BASET10=n CONFIG_EXAMPLE=nettest CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=200 diff --git a/nuttx/configs/c5471evm/nshconfig b/nuttx/configs/c5471evm/nshconfig index 3ced42317e..7ef567c664 100644 --- a/nuttx/configs/c5471evm/nshconfig +++ b/nuttx/configs/c5471evm/nshconfig @@ -139,6 +139,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -201,6 +203,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=nsh CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=200 diff --git a/nuttx/configs/eagle100/httpd/Make.defs b/nuttx/configs/eagle100/httpd/Make.defs index e8c7330664..4b756afad4 100644 --- a/nuttx/configs/eagle100/httpd/Make.defs +++ b/nuttx/configs/eagle100/httpd/Make.defs @@ -73,7 +73,7 @@ else MAXOPTIMIZATION = -O2 endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer @@ -108,7 +108,7 @@ EXEEXT = ifneq ($(CROSSDEV),arm-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif -ifeq ($(CONFIG_DEBUG),y) +ifeq ($(CONFIG_DEBUG_SYMBOLS),y) LDFLAGS += -g endif diff --git a/nuttx/configs/eagle100/httpd/defconfig b/nuttx/configs/eagle100/httpd/defconfig index fa0320ebbe..d36489d431 100644 --- a/nuttx/configs/eagle100/httpd/defconfig +++ b/nuttx/configs/eagle100/httpd/defconfig @@ -194,6 +194,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -256,6 +258,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=uip CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_DEBUG_NET=y CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y diff --git a/nuttx/configs/eagle100/nettest/Make.defs b/nuttx/configs/eagle100/nettest/Make.defs index 944fbe29eb..9d660db30b 100644 --- a/nuttx/configs/eagle100/nettest/Make.defs +++ b/nuttx/configs/eagle100/nettest/Make.defs @@ -73,7 +73,7 @@ else MAXOPTIMIZATION = -O2 endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer @@ -108,7 +108,7 @@ EXEEXT = ifneq ($(CROSSDEV),arm-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif -ifeq ($(CONFIG_DEBUG),y) +ifeq ($(CONFIG_DEBUG_SYMBOLS),y) LDFLAGS += -g endif diff --git a/nuttx/configs/eagle100/nettest/defconfig b/nuttx/configs/eagle100/nettest/defconfig index ba0d5456dc..27ce4e73c8 100644 --- a/nuttx/configs/eagle100/nettest/defconfig +++ b/nuttx/configs/eagle100/nettest/defconfig @@ -194,6 +194,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -256,6 +258,8 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=nettest CONFIG_DEBUG=y CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_DEBUG_NET=y CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y diff --git a/nuttx/configs/eagle100/nsh/Make.defs b/nuttx/configs/eagle100/nsh/Make.defs index 4b30ea9eff..aaca7f02e3 100644 --- a/nuttx/configs/eagle100/nsh/Make.defs +++ b/nuttx/configs/eagle100/nsh/Make.defs @@ -73,7 +73,7 @@ else MAXOPTIMIZATION = -O2 endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer @@ -108,7 +108,7 @@ EXEEXT = ifneq ($(CROSSDEV),arm-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif -ifeq ($(CONFIG_DEBUG),y) +ifeq ($(CONFIG_DEBUG_SYMBOLS),y) LDFLAGS += -g endif diff --git a/nuttx/configs/eagle100/nsh/defconfig b/nuttx/configs/eagle100/nsh/defconfig index c11a7a1dc8..d49b9834fc 100644 --- a/nuttx/configs/eagle100/nsh/defconfig +++ b/nuttx/configs/eagle100/nsh/defconfig @@ -194,6 +194,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -256,6 +258,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=nsh CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=200 diff --git a/nuttx/configs/eagle100/nxflat/Make.defs b/nuttx/configs/eagle100/nxflat/Make.defs index 72a51bf800..ad06674f61 100644 --- a/nuttx/configs/eagle100/nxflat/Make.defs +++ b/nuttx/configs/eagle100/nxflat/Make.defs @@ -76,7 +76,7 @@ else MAXOPTIMIZATION = -O2 endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer @@ -111,7 +111,7 @@ EXEEXT = ifneq ($(CROSSDEV),arm-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif -ifeq ($(CONFIG_DEBUG),y) +ifeq ($(CONFIG_DEBUG_SYMBOLS),y) LDFLAGS += -g endif diff --git a/nuttx/configs/eagle100/nxflat/defconfig b/nuttx/configs/eagle100/nxflat/defconfig index 4c918349f6..8c64c616f8 100644 --- a/nuttx/configs/eagle100/nxflat/defconfig +++ b/nuttx/configs/eagle100/nxflat/defconfig @@ -194,6 +194,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -253,6 +255,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=nxflat CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_DEBUG_BINFMT=y CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y diff --git a/nuttx/configs/eagle100/ostest/Make.defs b/nuttx/configs/eagle100/ostest/Make.defs index 1d0049fd4f..abfa77a989 100644 --- a/nuttx/configs/eagle100/ostest/Make.defs +++ b/nuttx/configs/eagle100/ostest/Make.defs @@ -73,7 +73,7 @@ else MAXOPTIMIZATION = -O2 endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer @@ -108,7 +108,7 @@ EXEEXT = ifneq ($(CROSSDEV),arm-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif -ifeq ($(CONFIG_DEBUG),y) +ifeq ($(CONFIG_DEBUG_SYMBOLS),y) LDFLAGS += -g endif diff --git a/nuttx/configs/eagle100/ostest/defconfig b/nuttx/configs/eagle100/ostest/defconfig index c648324510..c426bfd3a0 100644 --- a/nuttx/configs/eagle100/ostest/defconfig +++ b/nuttx/configs/eagle100/ostest/defconfig @@ -194,6 +194,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -256,6 +258,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=ostest CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=200 diff --git a/nuttx/configs/eagle100/thttpd/Make.defs b/nuttx/configs/eagle100/thttpd/Make.defs index b22aaee5ae..e75ec02f61 100644 --- a/nuttx/configs/eagle100/thttpd/Make.defs +++ b/nuttx/configs/eagle100/thttpd/Make.defs @@ -76,7 +76,7 @@ else MAXOPTIMIZATION = -O2 endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer @@ -111,7 +111,7 @@ EXEEXT = ifneq ($(CROSSDEV),arm-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif -ifeq ($(CONFIG_DEBUG),y) +ifeq ($(CONFIG_DEBUG_SYMBOLS),y) LDFLAGS += -g endif diff --git a/nuttx/configs/eagle100/thttpd/defconfig b/nuttx/configs/eagle100/thttpd/defconfig index 5e7ee7c66b..1e49fabfe8 100644 --- a/nuttx/configs/eagle100/thttpd/defconfig +++ b/nuttx/configs/eagle100/thttpd/defconfig @@ -194,6 +194,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -259,6 +261,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=thttpd CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_DEBUG_NET=y CONFIG_DEBUG_BINFMT=y CONFIG_MM_REGIONS=1 diff --git a/nuttx/configs/ez80f910200kitg/ostest/Make.defs b/nuttx/configs/ez80f910200kitg/ostest/Make.defs index 59954b3b86..0c9db964c6 100644 --- a/nuttx/configs/ez80f910200kitg/ostest/Make.defs +++ b/nuttx/configs/ez80f910200kitg/ostest/Make.defs @@ -68,7 +68,7 @@ ARCHCPUDEF = _EZ80F91 ARCHFAMILY = _EZ80ACCLAIM! endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHASMOPTIMIZATION = -debug -NOsdiopt else ARCHASMOPTIMIZATION = -nodebug -NOsdiopt @@ -85,7 +85,7 @@ AFLAGS = $(ARCHASMCPUFLAGS) $(ARCHASMINCLUDES) $(ARCHASMLIST) \ # Compiler definitions -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -debug -reduceopt else ARCHOPTIMIZATION = -nodebug -optsize diff --git a/nuttx/configs/ez80f910200kitg/ostest/defconfig b/nuttx/configs/ez80f910200kitg/ostest/defconfig index 24355d85ba..8509d2f330 100644 --- a/nuttx/configs/ez80f910200kitg/ostest/defconfig +++ b/nuttx/configs/ez80f910200kitg/ostest/defconfig @@ -171,6 +171,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -235,6 +237,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=ostest CONFIG_DEBUG=y CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/configs/ez80f910200zco/dhcpd/Make.defs b/nuttx/configs/ez80f910200zco/dhcpd/Make.defs index db53996646..3d15d9051b 100644 --- a/nuttx/configs/ez80f910200zco/dhcpd/Make.defs +++ b/nuttx/configs/ez80f910200zco/dhcpd/Make.defs @@ -68,7 +68,7 @@ ARCHCPUDEF = _EZ80F91 ARCHFAMILY = _EZ80ACCLAIM! endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHASMOPTIMIZATION = -debug -NOsdiopt else ARCHASMOPTIMIZATION = -nodebug -NOsdiopt @@ -85,7 +85,7 @@ AFLAGS = $(ARCHASMCPUFLAGS) $(ARCHASMINCLUDES) $(ARCHASMLIST) \ # Compiler definitions -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -debug -reduceopt else ARCHOPTIMIZATION = -nodebug -optsize diff --git a/nuttx/configs/ez80f910200zco/dhcpd/defconfig b/nuttx/configs/ez80f910200zco/dhcpd/defconfig index 7cb65f7f62..fac51a6181 100644 --- a/nuttx/configs/ez80f910200zco/dhcpd/defconfig +++ b/nuttx/configs/ez80f910200zco/dhcpd/defconfig @@ -176,6 +176,8 @@ CONFIG_HAVE_LIBM=n # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output # CONFIG_DEBUG_NET - enables debug of the network subsystem +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -240,6 +242,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=dhcpd CONFIG_DEBUG=y CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_DEBUG_NET=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y diff --git a/nuttx/configs/ez80f910200zco/httpd/Make.defs b/nuttx/configs/ez80f910200zco/httpd/Make.defs index 9b144501ff..5f354d41cf 100644 --- a/nuttx/configs/ez80f910200zco/httpd/Make.defs +++ b/nuttx/configs/ez80f910200zco/httpd/Make.defs @@ -68,7 +68,7 @@ ARCHCPUDEF = _EZ80F91 ARCHFAMILY = _EZ80ACCLAIM! endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHASMOPTIMIZATION = -debug -NOsdiopt else ARCHASMOPTIMIZATION = -nodebug -NOsdiopt @@ -85,7 +85,7 @@ AFLAGS = $(ARCHASMCPUFLAGS) $(ARCHASMINCLUDES) $(ARCHASMLIST) \ # Compiler definitions -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -debug -reduceopt else ARCHOPTIMIZATION = -nodebug -optsize diff --git a/nuttx/configs/ez80f910200zco/httpd/defconfig b/nuttx/configs/ez80f910200zco/httpd/defconfig index ad594c4251..ad045d0a2f 100644 --- a/nuttx/configs/ez80f910200zco/httpd/defconfig +++ b/nuttx/configs/ez80f910200zco/httpd/defconfig @@ -176,6 +176,8 @@ CONFIG_HAVE_LIBM=n # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output # CONFIG_DEBUG_NET - enables debug of the network subsystem +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -240,6 +242,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=uip CONFIG_DEBUG=y CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_DEBUG_NET=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y diff --git a/nuttx/configs/ez80f910200zco/nettest/Make.defs b/nuttx/configs/ez80f910200zco/nettest/Make.defs index 6ef4dfa468..26246793bf 100644 --- a/nuttx/configs/ez80f910200zco/nettest/Make.defs +++ b/nuttx/configs/ez80f910200zco/nettest/Make.defs @@ -68,7 +68,7 @@ ARCHCPUDEF = _EZ80F91 ARCHFAMILY = _EZ80ACCLAIM! endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHASMOPTIMIZATION = -debug -NOsdiopt else ARCHASMOPTIMIZATION = -nodebug -NOsdiopt @@ -85,7 +85,7 @@ AFLAGS = $(ARCHASMCPUFLAGS) $(ARCHASMINCLUDES) $(ARCHASMLIST) \ # Compiler definitions -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -debug -reduceopt else ARCHOPTIMIZATION = -nodebug -optsize diff --git a/nuttx/configs/ez80f910200zco/nettest/defconfig b/nuttx/configs/ez80f910200zco/nettest/defconfig index 46dea41172..9f73102b6a 100644 --- a/nuttx/configs/ez80f910200zco/nettest/defconfig +++ b/nuttx/configs/ez80f910200zco/nettest/defconfig @@ -176,6 +176,8 @@ CONFIG_HAVE_LIBM=n # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output # CONFIG_DEBUG_NET - enables debug of the network subsystem +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -240,6 +242,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=nettest CONFIG_DEBUG=y CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_DEBUG_NET=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y diff --git a/nuttx/configs/ez80f910200zco/nsh/Make.defs b/nuttx/configs/ez80f910200zco/nsh/Make.defs index e28aef2a40..0f03fdcaca 100644 --- a/nuttx/configs/ez80f910200zco/nsh/Make.defs +++ b/nuttx/configs/ez80f910200zco/nsh/Make.defs @@ -68,7 +68,7 @@ ARCHCPUDEF = _EZ80F91 ARCHFAMILY = _EZ80ACCLAIM! endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHASMOPTIMIZATION = -debug -NOsdiopt else ARCHASMOPTIMIZATION = -nodebug -NOsdiopt @@ -85,7 +85,7 @@ AFLAGS = $(ARCHASMCPUFLAGS) $(ARCHASMINCLUDES) $(ARCHASMLIST) \ # Compiler definitions -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -debug -reduceopt else ARCHOPTIMIZATION = -nodebug -optsize diff --git a/nuttx/configs/ez80f910200zco/nsh/defconfig b/nuttx/configs/ez80f910200zco/nsh/defconfig index 7b3c564c6c..4606e71ab6 100644 --- a/nuttx/configs/ez80f910200zco/nsh/defconfig +++ b/nuttx/configs/ez80f910200zco/nsh/defconfig @@ -176,6 +176,8 @@ CONFIG_HAVE_LIBM=n # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output # CONFIG_DEBUG_NET - enables debug of the network subsystem +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -240,6 +242,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=nsh CONFIG_DEBUG=y CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_DEBUG_NET=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y diff --git a/nuttx/configs/ez80f910200zco/ostest/Make.defs b/nuttx/configs/ez80f910200zco/ostest/Make.defs index a07450d2f6..7340f20cf4 100644 --- a/nuttx/configs/ez80f910200zco/ostest/Make.defs +++ b/nuttx/configs/ez80f910200zco/ostest/Make.defs @@ -68,7 +68,7 @@ ARCHCPUDEF = _EZ80F91 ARCHFAMILY = _EZ80ACCLAIM! endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHASMOPTIMIZATION = -debug -NOsdiopt else ARCHASMOPTIMIZATION = -nodebug -NOsdiopt @@ -85,7 +85,7 @@ AFLAGS = $(ARCHASMCPUFLAGS) $(ARCHASMINCLUDES) $(ARCHASMLIST) \ # Compiler definitions -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -debug -reduceopt else ARCHOPTIMIZATION = -nodebug -optsize diff --git a/nuttx/configs/ez80f910200zco/ostest/defconfig b/nuttx/configs/ez80f910200zco/ostest/defconfig index 93819afbc7..0b51837150 100644 --- a/nuttx/configs/ez80f910200zco/ostest/defconfig +++ b/nuttx/configs/ez80f910200zco/ostest/defconfig @@ -174,6 +174,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -238,6 +240,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=ostest CONFIG_DEBUG=y CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=200 diff --git a/nuttx/configs/ez80f910200zco/poll/Make.defs b/nuttx/configs/ez80f910200zco/poll/Make.defs index e6a276cfaa..c4385597fa 100644 --- a/nuttx/configs/ez80f910200zco/poll/Make.defs +++ b/nuttx/configs/ez80f910200zco/poll/Make.defs @@ -68,7 +68,7 @@ ARCHCPUDEF = _EZ80F91 ARCHFAMILY = _EZ80ACCLAIM! endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHASMOPTIMIZATION = -debug -NOsdiopt else ARCHASMOPTIMIZATION = -nodebug -NOsdiopt @@ -85,7 +85,7 @@ AFLAGS = $(ARCHASMCPUFLAGS) $(ARCHASMINCLUDES) $(ARCHASMLIST) \ # Compiler definitions -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -debug -reduceopt else ARCHOPTIMIZATION = -nodebug -optsize diff --git a/nuttx/configs/ez80f910200zco/poll/defconfig b/nuttx/configs/ez80f910200zco/poll/defconfig index 90c5d6e780..4b06b3f75d 100644 --- a/nuttx/configs/ez80f910200zco/poll/defconfig +++ b/nuttx/configs/ez80f910200zco/poll/defconfig @@ -175,6 +175,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_DEBUG_NET - enables debug of the network subsystem # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the @@ -240,6 +242,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=poll CONFIG_DEBUG=y CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_DEBUG_NET=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y diff --git a/nuttx/configs/m68332evb/Make.defs b/nuttx/configs/m68332evb/Make.defs index 887260cca0..99b57aeee5 100644 --- a/nuttx/configs/m68332evb/Make.defs +++ b/nuttx/configs/m68332evb/Make.defs @@ -35,7 +35,7 @@ include ${TOPDIR}/.config -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = -Os -fno-strict-aliasing -fno-strength-reduce \ @@ -67,7 +67,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") LDFLAGS += -g endif diff --git a/nuttx/configs/m68332evb/defconfig b/nuttx/configs/m68332evb/defconfig index f136baa7da..b742c4c020 100644 --- a/nuttx/configs/m68332evb/defconfig +++ b/nuttx/configs/m68332evb/defconfig @@ -110,6 +110,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -169,6 +171,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=ostest CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=200 diff --git a/nuttx/configs/mcu123-lpc214x/nsh/Make.defs b/nuttx/configs/mcu123-lpc214x/nsh/Make.defs index d4d776bdce..b869bec359 100644 --- a/nuttx/configs/mcu123-lpc214x/nsh/Make.defs +++ b/nuttx/configs/mcu123-lpc214x/nsh/Make.defs @@ -79,7 +79,7 @@ else MAXOPTIMIZATION = -O2 endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer @@ -120,7 +120,7 @@ EXEEXT = ifneq ($(CROSSDEV),arm-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif -ifeq ($(CONFIG_DEBUG),y) +ifeq ($(CONFIG_DEBUG_SYMBOLS),y) LDFLAGS += -g endif diff --git a/nuttx/configs/mcu123-lpc214x/nsh/defconfig b/nuttx/configs/mcu123-lpc214x/nsh/defconfig index 5703b9f077..020777af22 100644 --- a/nuttx/configs/mcu123-lpc214x/nsh/defconfig +++ b/nuttx/configs/mcu123-lpc214x/nsh/defconfig @@ -143,6 +143,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -205,6 +207,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=nsh CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/configs/mcu123-lpc214x/ostest/Make.defs b/nuttx/configs/mcu123-lpc214x/ostest/Make.defs index 3e5ac3a0a0..b2f12b6774 100644 --- a/nuttx/configs/mcu123-lpc214x/ostest/Make.defs +++ b/nuttx/configs/mcu123-lpc214x/ostest/Make.defs @@ -79,7 +79,7 @@ else MAXOPTIMIZATION = -O2 endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer @@ -120,7 +120,7 @@ EXEEXT = ifneq ($(CROSSDEV),arm-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif -ifeq ($(CONFIG_DEBUG),y) +ifeq ($(CONFIG_DEBUG_SYMBOLS),y) LDFLAGS += -g endif diff --git a/nuttx/configs/mcu123-lpc214x/ostest/defconfig b/nuttx/configs/mcu123-lpc214x/ostest/defconfig index a88f03cf25..950f402412 100644 --- a/nuttx/configs/mcu123-lpc214x/ostest/defconfig +++ b/nuttx/configs/mcu123-lpc214x/ostest/defconfig @@ -143,6 +143,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -205,6 +207,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=ostest CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/configs/mcu123-lpc214x/usbserial/Make.defs b/nuttx/configs/mcu123-lpc214x/usbserial/Make.defs index 8d56c9d73e..f572099b8a 100644 --- a/nuttx/configs/mcu123-lpc214x/usbserial/Make.defs +++ b/nuttx/configs/mcu123-lpc214x/usbserial/Make.defs @@ -79,7 +79,7 @@ else MAXOPTIMIZATION = -O2 endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer @@ -120,7 +120,7 @@ EXEEXT = ifneq ($(CROSSDEV),arm-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif -ifeq ($(CONFIG_DEBUG),y) +ifeq ($(CONFIG_DEBUG_SYMBOLS),y) LDFLAGS += -g endif diff --git a/nuttx/configs/mcu123-lpc214x/usbserial/defconfig b/nuttx/configs/mcu123-lpc214x/usbserial/defconfig index b3e9fa1122..c3826d10c8 100644 --- a/nuttx/configs/mcu123-lpc214x/usbserial/defconfig +++ b/nuttx/configs/mcu123-lpc214x/usbserial/defconfig @@ -143,6 +143,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -205,6 +207,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=usbserial CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_DEBUG_USB=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y diff --git a/nuttx/configs/mcu123-lpc214x/usbstorage/Make.defs b/nuttx/configs/mcu123-lpc214x/usbstorage/Make.defs index 5fb0374219..8640374922 100644 --- a/nuttx/configs/mcu123-lpc214x/usbstorage/Make.defs +++ b/nuttx/configs/mcu123-lpc214x/usbstorage/Make.defs @@ -79,7 +79,7 @@ else MAXOPTIMIZATION = -O2 endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer @@ -120,7 +120,7 @@ EXEEXT = ifneq ($(CROSSDEV),arm-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif -ifeq ($(CONFIG_DEBUG),y) +ifeq ($(CONFIG_DEBUG_SYMBOLS),y) LDFLAGS += -g endif diff --git a/nuttx/configs/mcu123-lpc214x/usbstorage/defconfig b/nuttx/configs/mcu123-lpc214x/usbstorage/defconfig index 247031ea80..1e7525c0e3 100644 --- a/nuttx/configs/mcu123-lpc214x/usbstorage/defconfig +++ b/nuttx/configs/mcu123-lpc214x/usbstorage/defconfig @@ -143,6 +143,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -205,6 +207,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=usbstorage CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_DEBUG_USB=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y diff --git a/nuttx/configs/mx1ads/ostest/Make.defs b/nuttx/configs/mx1ads/ostest/Make.defs index 89bad6d864..cd81204e7e 100644 --- a/nuttx/configs/mx1ads/ostest/Make.defs +++ b/nuttx/configs/mx1ads/ostest/Make.defs @@ -53,7 +53,7 @@ ARCHCXXFLAGS = -fno-builtin -fno-exceptions ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow ARCHWARNINGSXX = -Wall -Wshadow -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = -Os -fno-strict-aliasing -fno-strength-reduce \ @@ -91,7 +91,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") LDFLAGS += -g endif diff --git a/nuttx/configs/mx1ads/ostest/defconfig b/nuttx/configs/mx1ads/ostest/defconfig index 0ee7cf1824..5fd3d89091 100644 --- a/nuttx/configs/mx1ads/ostest/defconfig +++ b/nuttx/configs/mx1ads/ostest/defconfig @@ -150,6 +150,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -212,6 +214,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=ostest CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=2 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=200 diff --git a/nuttx/configs/ntosd-dm320/nettest/Make.defs b/nuttx/configs/ntosd-dm320/nettest/Make.defs index baf82a4bfa..c96f81c58d 100644 --- a/nuttx/configs/ntosd-dm320/nettest/Make.defs +++ b/nuttx/configs/ntosd-dm320/nettest/Make.defs @@ -47,7 +47,7 @@ OBJDUMP = $(CROSSDEV)objdump ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'} ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = -Os -fno-strict-aliasing -fno-strength-reduce \ @@ -82,7 +82,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") LDFLAGS += -g endif diff --git a/nuttx/configs/ntosd-dm320/nettest/defconfig b/nuttx/configs/ntosd-dm320/nettest/defconfig index 838602dbc0..a4a78f6859 100644 --- a/nuttx/configs/ntosd-dm320/nettest/defconfig +++ b/nuttx/configs/ntosd-dm320/nettest/defconfig @@ -127,6 +127,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -189,6 +191,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=nettest CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=200 diff --git a/nuttx/configs/ntosd-dm320/nsh/Make.defs b/nuttx/configs/ntosd-dm320/nsh/Make.defs index d75f7ae8ec..d781d05fa0 100644 --- a/nuttx/configs/ntosd-dm320/nsh/Make.defs +++ b/nuttx/configs/ntosd-dm320/nsh/Make.defs @@ -47,7 +47,7 @@ OBJDUMP = $(CROSSDEV)objdump ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'} ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = -Os -fno-strict-aliasing -fno-strength-reduce \ @@ -82,7 +82,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") LDFLAGS += -g endif diff --git a/nuttx/configs/ntosd-dm320/nsh/defconfig b/nuttx/configs/ntosd-dm320/nsh/defconfig index df05875802..07ced4a1ac 100644 --- a/nuttx/configs/ntosd-dm320/nsh/defconfig +++ b/nuttx/configs/ntosd-dm320/nsh/defconfig @@ -127,6 +127,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -189,6 +191,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=nsh CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=200 diff --git a/nuttx/configs/ntosd-dm320/ostest/Make.defs b/nuttx/configs/ntosd-dm320/ostest/Make.defs index 589723ec90..0884959ca3 100644 --- a/nuttx/configs/ntosd-dm320/ostest/Make.defs +++ b/nuttx/configs/ntosd-dm320/ostest/Make.defs @@ -47,7 +47,7 @@ OBJDUMP = $(CROSSDEV)objdump ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'} ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = -Os -fno-strict-aliasing -fno-strength-reduce \ @@ -82,7 +82,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") LDFLAGS += -g endif diff --git a/nuttx/configs/ntosd-dm320/ostest/defconfig b/nuttx/configs/ntosd-dm320/ostest/defconfig index 5aed912e83..06ec1bb9a8 100644 --- a/nuttx/configs/ntosd-dm320/ostest/defconfig +++ b/nuttx/configs/ntosd-dm320/ostest/defconfig @@ -127,6 +127,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -189,6 +191,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=ostest CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=200 diff --git a/nuttx/configs/ntosd-dm320/poll/Make.defs b/nuttx/configs/ntosd-dm320/poll/Make.defs index 8966a537d4..e8d4f8d4f5 100644 --- a/nuttx/configs/ntosd-dm320/poll/Make.defs +++ b/nuttx/configs/ntosd-dm320/poll/Make.defs @@ -47,7 +47,7 @@ OBJDUMP = $(CROSSDEV)objdump ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'} ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = -Os -fno-strict-aliasing -fno-strength-reduce \ @@ -82,7 +82,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") LDFLAGS += -g endif diff --git a/nuttx/configs/ntosd-dm320/poll/defconfig b/nuttx/configs/ntosd-dm320/poll/defconfig index 3c52d0c6b4..9b95280cae 100644 --- a/nuttx/configs/ntosd-dm320/poll/defconfig +++ b/nuttx/configs/ntosd-dm320/poll/defconfig @@ -127,6 +127,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -189,6 +191,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=poll CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=200 diff --git a/nuttx/configs/ntosd-dm320/thttpd/Make.defs b/nuttx/configs/ntosd-dm320/thttpd/Make.defs index 983f9c362f..e3e3859c18 100644 --- a/nuttx/configs/ntosd-dm320/thttpd/Make.defs +++ b/nuttx/configs/ntosd-dm320/thttpd/Make.defs @@ -51,7 +51,7 @@ LDNXFLAT = ldnxflat ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'} ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = -Os -fno-strict-aliasing -fno-strength-reduce \ @@ -92,7 +92,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") LDFLAGS += -g endif diff --git a/nuttx/configs/ntosd-dm320/thttpd/defconfig b/nuttx/configs/ntosd-dm320/thttpd/defconfig index 179523247e..af6dc44792 100644 --- a/nuttx/configs/ntosd-dm320/thttpd/defconfig +++ b/nuttx/configs/ntosd-dm320/thttpd/defconfig @@ -131,6 +131,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -196,6 +198,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=thttpd CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_DEBUG_NET=y CONFIG_DEBUG_BINFMT=y CONFIG_MM_REGIONS=1 diff --git a/nuttx/configs/ntosd-dm320/udp/Make.defs b/nuttx/configs/ntosd-dm320/udp/Make.defs index 1d97b966bc..d3d8459aad 100644 --- a/nuttx/configs/ntosd-dm320/udp/Make.defs +++ b/nuttx/configs/ntosd-dm320/udp/Make.defs @@ -47,7 +47,7 @@ OBJDUMP = $(CROSSDEV)objdump ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'} ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = -Os -fno-strict-aliasing -fno-strength-reduce \ @@ -82,7 +82,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") LDFLAGS += -g endif diff --git a/nuttx/configs/ntosd-dm320/udp/defconfig b/nuttx/configs/ntosd-dm320/udp/defconfig index 646611bd6d..d9ea60acc5 100644 --- a/nuttx/configs/ntosd-dm320/udp/defconfig +++ b/nuttx/configs/ntosd-dm320/udp/defconfig @@ -127,6 +127,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -189,6 +191,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=udp CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=200 diff --git a/nuttx/configs/ntosd-dm320/uip/Make.defs b/nuttx/configs/ntosd-dm320/uip/Make.defs index cef41734f1..358ac36688 100644 --- a/nuttx/configs/ntosd-dm320/uip/Make.defs +++ b/nuttx/configs/ntosd-dm320/uip/Make.defs @@ -47,7 +47,7 @@ OBJDUMP = $(CROSSDEV)objdump ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'} ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = -Os -fno-strict-aliasing -fno-strength-reduce \ @@ -82,7 +82,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") LDFLAGS += -g endif diff --git a/nuttx/configs/ntosd-dm320/uip/defconfig b/nuttx/configs/ntosd-dm320/uip/defconfig index 43605906f3..87afda326a 100644 --- a/nuttx/configs/ntosd-dm320/uip/defconfig +++ b/nuttx/configs/ntosd-dm320/uip/defconfig @@ -127,6 +127,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -189,6 +191,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=uip CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=200 diff --git a/nuttx/configs/olimex-strp711/nsh/Make.defs b/nuttx/configs/olimex-strp711/nsh/Make.defs index cc0f59ac42..3cff99873e 100644 --- a/nuttx/configs/olimex-strp711/nsh/Make.defs +++ b/nuttx/configs/olimex-strp711/nsh/Make.defs @@ -79,7 +79,7 @@ else MAXOPTIMIZATION = -O2 endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer @@ -120,7 +120,7 @@ EXEEXT = ifneq ($(CROSSDEV),arm-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif -ifeq ($(CONFIG_DEBUG),y) +ifeq ($(CONFIG_DEBUG_SYMBOLS),y) LDFLAGS += -g endif diff --git a/nuttx/configs/olimex-strp711/nsh/defconfig b/nuttx/configs/olimex-strp711/nsh/defconfig index f414066906..7e5378ca72 100644 --- a/nuttx/configs/olimex-strp711/nsh/defconfig +++ b/nuttx/configs/olimex-strp711/nsh/defconfig @@ -210,6 +210,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -272,6 +274,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=nsh CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/configs/olimex-strp711/ostest/Make.defs b/nuttx/configs/olimex-strp711/ostest/Make.defs index 0389389654..1fdfb750dd 100644 --- a/nuttx/configs/olimex-strp711/ostest/Make.defs +++ b/nuttx/configs/olimex-strp711/ostest/Make.defs @@ -79,7 +79,7 @@ else MAXOPTIMIZATION = -O2 endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer @@ -120,7 +120,7 @@ EXEEXT = ifneq ($(CROSSDEV),arm-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif -ifeq ($(CONFIG_DEBUG),y) +ifeq ($(CONFIG_DEBUG_SYMBOLS),y) LDFLAGS += -g endif diff --git a/nuttx/configs/olimex-strp711/ostest/defconfig b/nuttx/configs/olimex-strp711/ostest/defconfig index 9960aa5038..304bc74255 100644 --- a/nuttx/configs/olimex-strp711/ostest/defconfig +++ b/nuttx/configs/olimex-strp711/ostest/defconfig @@ -210,6 +210,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -272,6 +274,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=ostest CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/configs/pjrc-8051/Make.defs b/nuttx/configs/pjrc-8051/Make.defs index 6ccf353ee3..e0083c966d 100644 --- a/nuttx/configs/pjrc-8051/Make.defs +++ b/nuttx/configs/pjrc-8051/Make.defs @@ -35,7 +35,7 @@ include ${TOPDIR}/.config -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = --debug else ARCHOPTIMIZATION = diff --git a/nuttx/configs/pjrc-8051/defconfig b/nuttx/configs/pjrc-8051/defconfig index b02356465d..b8f3c48791 100644 --- a/nuttx/configs/pjrc-8051/defconfig +++ b/nuttx/configs/pjrc-8051/defconfig @@ -107,6 +107,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -166,6 +168,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=ostest CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=2 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/configs/sim/mount/Make.defs b/nuttx/configs/sim/mount/Make.defs index df5512765e..4bad4c1835 100644 --- a/nuttx/configs/sim/mount/Make.defs +++ b/nuttx/configs/sim/mount/Make.defs @@ -37,7 +37,7 @@ include ${TOPDIR}/.config HOSTOS = ${shell uname -o} -ifeq ($(CONFIG_DEBUG),y) +ifeq ($(CONFIG_DEBUG_SYMBOLS),y) ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = -O2 @@ -73,7 +73,7 @@ else EXEEXT = endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") LDFLAGS += -g endif diff --git a/nuttx/configs/sim/mount/defconfig b/nuttx/configs/sim/mount/defconfig index 62af2a2321..0f4cd91852 100644 --- a/nuttx/configs/sim/mount/defconfig +++ b/nuttx/configs/sim/mount/defconfig @@ -56,6 +56,8 @@ CONFIG_ARCH_BOARD_SIM=y # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -115,6 +117,7 @@ CONFIG_ARCH_BOARD_SIM=y CONFIG_EXAMPLE=mount CONFIG_DEBUG=y CONFIG_DEBUG_VERBOSE=y +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/configs/sim/nettest/Make.defs b/nuttx/configs/sim/nettest/Make.defs index ea8207d932..d00f5e923b 100644 --- a/nuttx/configs/sim/nettest/Make.defs +++ b/nuttx/configs/sim/nettest/Make.defs @@ -37,7 +37,7 @@ include ${TOPDIR}/.config HOSTOS = ${shell uname -o} -ifeq ($(CONFIG_DEBUG),y) +ifeq ($(CONFIG_DEBUG_SYMBOLS),y) ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = -O2 @@ -73,7 +73,7 @@ else EXEEXT = endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") LDFLAGS += -g endif diff --git a/nuttx/configs/sim/nettest/defconfig b/nuttx/configs/sim/nettest/defconfig index 9067705c56..fde3940b74 100644 --- a/nuttx/configs/sim/nettest/defconfig +++ b/nuttx/configs/sim/nettest/defconfig @@ -56,6 +56,8 @@ CONFIG_ARCH_BOARD_SIM=y # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -115,6 +117,7 @@ CONFIG_ARCH_BOARD_SIM=y CONFIG_EXAMPLE=nettest CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/configs/sim/nsh/Make.defs b/nuttx/configs/sim/nsh/Make.defs index 32dce8c5f8..163224b7af 100644 --- a/nuttx/configs/sim/nsh/Make.defs +++ b/nuttx/configs/sim/nsh/Make.defs @@ -37,7 +37,7 @@ include ${TOPDIR}/.config HOSTOS = ${shell uname -o} -ifeq ($(CONFIG_DEBUG),y) +ifeq ($(CONFIG_DEBUG_SYMBOLS),y) ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = -O2 @@ -73,7 +73,7 @@ else EXEEXT = endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") LDFLAGS += -g endif diff --git a/nuttx/configs/sim/nsh/defconfig b/nuttx/configs/sim/nsh/defconfig index c200641f9a..4089f0ad51 100644 --- a/nuttx/configs/sim/nsh/defconfig +++ b/nuttx/configs/sim/nsh/defconfig @@ -56,6 +56,8 @@ CONFIG_ARCH_BOARD_SIM=y # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -115,6 +117,7 @@ CONFIG_ARCH_BOARD_SIM=y CONFIG_EXAMPLE=nsh CONFIG_DEBUG=y CONFIG_DEBUG_VERBOSE=y +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/configs/sim/nx/Make.defs b/nuttx/configs/sim/nx/Make.defs index 936e161a2f..2c5ae3ced1 100644 --- a/nuttx/configs/sim/nx/Make.defs +++ b/nuttx/configs/sim/nx/Make.defs @@ -37,7 +37,7 @@ include ${TOPDIR}/.config HOSTOS = ${shell uname -o} -ifeq ($(CONFIG_DEBUG),y) +ifeq ($(CONFIG_DEBUG_SYMBOLS),y) ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = -O2 @@ -73,7 +73,7 @@ else EXEEXT = endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") LDFLAGS += -g endif diff --git a/nuttx/configs/sim/nx/defconfig b/nuttx/configs/sim/nx/defconfig index 4138f2304e..1b33eb4820 100644 --- a/nuttx/configs/sim/nx/defconfig +++ b/nuttx/configs/sim/nx/defconfig @@ -63,6 +63,8 @@ CONFIG_SIM_FBBPP=8 # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -122,6 +124,7 @@ CONFIG_SIM_FBBPP=8 CONFIG_EXAMPLE=nx CONFIG_DEBUG=y CONFIG_DEBUG_VERBOSE=y +CONFIG_DEBUG_SYMBOLS=n CONFIG_DEBUG_GRAPHICS=y CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y diff --git a/nuttx/configs/sim/nx/defconfig-x11 b/nuttx/configs/sim/nx/defconfig-x11 index 95bc03eaf1..8b7c83f241 100644 --- a/nuttx/configs/sim/nx/defconfig-x11 +++ b/nuttx/configs/sim/nx/defconfig-x11 @@ -63,6 +63,8 @@ CONFIG_SIM_FBBPP=32 # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -122,6 +124,7 @@ CONFIG_SIM_FBBPP=32 CONFIG_EXAMPLE=nx CONFIG_DEBUG=y CONFIG_DEBUG_VERBOSE=y +CONFIG_DEBUG_SYMBOLS=n CONFIG_DEBUG_GRAPHICS=y CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y diff --git a/nuttx/configs/sim/ostest/Make.defs b/nuttx/configs/sim/ostest/Make.defs index ea8207d932..d00f5e923b 100644 --- a/nuttx/configs/sim/ostest/Make.defs +++ b/nuttx/configs/sim/ostest/Make.defs @@ -37,7 +37,7 @@ include ${TOPDIR}/.config HOSTOS = ${shell uname -o} -ifeq ($(CONFIG_DEBUG),y) +ifeq ($(CONFIG_DEBUG_SYMBOLS),y) ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = -O2 @@ -73,7 +73,7 @@ else EXEEXT = endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") LDFLAGS += -g endif diff --git a/nuttx/configs/sim/ostest/defconfig b/nuttx/configs/sim/ostest/defconfig index 8fee07a9b0..ba1d7a61db 100644 --- a/nuttx/configs/sim/ostest/defconfig +++ b/nuttx/configs/sim/ostest/defconfig @@ -56,6 +56,8 @@ CONFIG_ARCH_BOARD_SIM=y # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -115,6 +117,7 @@ CONFIG_ARCH_BOARD_SIM=y CONFIG_EXAMPLE=ostest CONFIG_DEBUG=y CONFIG_DEBUG_VERBOSE=y +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/configs/sim/pashello/Make.defs b/nuttx/configs/sim/pashello/Make.defs index 66ed73599a..7060ae542b 100644 --- a/nuttx/configs/sim/pashello/Make.defs +++ b/nuttx/configs/sim/pashello/Make.defs @@ -37,7 +37,7 @@ include ${TOPDIR}/.config HOSTOS = ${shell uname -o} -ifeq ($(CONFIG_DEBUG),y) +ifeq ($(CONFIG_DEBUG_SYMBOLS),y) ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = -O2 @@ -73,7 +73,7 @@ else EXEEXT = endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") LDFLAGS += -g endif EXTRA_LIBS = -lm diff --git a/nuttx/configs/sim/pashello/defconfig b/nuttx/configs/sim/pashello/defconfig index f2e21dc66f..33694968e6 100644 --- a/nuttx/configs/sim/pashello/defconfig +++ b/nuttx/configs/sim/pashello/defconfig @@ -56,6 +56,8 @@ CONFIG_ARCH_BOARD_SIM=y # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -115,6 +117,7 @@ CONFIG_ARCH_BOARD_SIM=y CONFIG_EXAMPLE=pashello CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/configs/skp16c26/ostest/Make.defs b/nuttx/configs/skp16c26/ostest/Make.defs index 7225216e16..cbabe78828 100644 --- a/nuttx/configs/skp16c26/ostest/Make.defs +++ b/nuttx/configs/skp16c26/ostest/Make.defs @@ -47,7 +47,7 @@ OBJDUMP = $(CROSSDEV)objdump ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'} ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = -Os -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer @@ -69,7 +69,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") LDFLAGS += -g endif diff --git a/nuttx/configs/skp16c26/ostest/defconfig b/nuttx/configs/skp16c26/ostest/defconfig index a9656c4dd7..50dfc1e7ce 100644 --- a/nuttx/configs/skp16c26/ostest/defconfig +++ b/nuttx/configs/skp16c26/ostest/defconfig @@ -154,6 +154,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -213,6 +215,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=ostest CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=200 diff --git a/nuttx/configs/us7032evb1/nsh/Make.defs b/nuttx/configs/us7032evb1/nsh/Make.defs index c1398ba458..a290dd89ef 100644 --- a/nuttx/configs/us7032evb1/nsh/Make.defs +++ b/nuttx/configs/us7032evb1/nsh/Make.defs @@ -35,7 +35,7 @@ include ${TOPDIR}/.config -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = -Os -fno-strict-aliasing -fno-strength-reduce \ @@ -67,7 +67,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") LDFLAGS += -g endif diff --git a/nuttx/configs/us7032evb1/nsh/defconfig b/nuttx/configs/us7032evb1/nsh/defconfig index 7e3d665309..165f913cdd 100644 --- a/nuttx/configs/us7032evb1/nsh/defconfig +++ b/nuttx/configs/us7032evb1/nsh/defconfig @@ -158,6 +158,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -217,6 +219,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=nsh CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/configs/us7032evb1/ostest/Make.defs b/nuttx/configs/us7032evb1/ostest/Make.defs index e988fbb207..6873874489 100644 --- a/nuttx/configs/us7032evb1/ostest/Make.defs +++ b/nuttx/configs/us7032evb1/ostest/Make.defs @@ -35,7 +35,7 @@ include ${TOPDIR}/.config -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -g else ARCHOPTIMIZATION = -Os -fno-strict-aliasing -fno-strength-reduce \ @@ -67,7 +67,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") LDFLAGS += -g endif diff --git a/nuttx/configs/us7032evb1/ostest/defconfig b/nuttx/configs/us7032evb1/ostest/defconfig index 826000741e..595f7afc58 100644 --- a/nuttx/configs/us7032evb1/ostest/defconfig +++ b/nuttx/configs/us7032evb1/ostest/defconfig @@ -158,6 +158,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -217,6 +219,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=ostest CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/configs/xtrs/nsh/Make.defs b/nuttx/configs/xtrs/nsh/Make.defs index 5b35cd8b43..2a297fc5d4 100644 --- a/nuttx/configs/xtrs/nsh/Make.defs +++ b/nuttx/configs/xtrs/nsh/Make.defs @@ -35,7 +35,7 @@ include ${TOPDIR}/.config -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = --debug else ARCHOPTIMIZATION = diff --git a/nuttx/configs/xtrs/nsh/defconfig b/nuttx/configs/xtrs/nsh/defconfig index dbfd3781a6..414ee636e0 100644 --- a/nuttx/configs/xtrs/nsh/defconfig +++ b/nuttx/configs/xtrs/nsh/defconfig @@ -99,6 +99,8 @@ CONFIG_LINKER_ROM_AT_0000=y # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -161,6 +163,7 @@ CONFIG_LINKER_ROM_AT_0000=y CONFIG_EXAMPLE=nsh CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/configs/xtrs/ostest/Make.defs b/nuttx/configs/xtrs/ostest/Make.defs index 3b77c29516..f9b6b12d3e 100644 --- a/nuttx/configs/xtrs/ostest/Make.defs +++ b/nuttx/configs/xtrs/ostest/Make.defs @@ -35,7 +35,7 @@ include ${TOPDIR}/.config -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = --debug else ARCHOPTIMIZATION = diff --git a/nuttx/configs/xtrs/ostest/defconfig b/nuttx/configs/xtrs/ostest/defconfig index a2c9be3f41..b3f3373c15 100644 --- a/nuttx/configs/xtrs/ostest/defconfig +++ b/nuttx/configs/xtrs/ostest/defconfig @@ -99,6 +99,8 @@ CONFIG_LINKER_ROM_AT_0000=y # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -161,6 +163,7 @@ CONFIG_LINKER_ROM_AT_0000=y CONFIG_EXAMPLE=ostest CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/configs/xtrs/pashello/Make.defs b/nuttx/configs/xtrs/pashello/Make.defs index 3b77c29516..f9b6b12d3e 100644 --- a/nuttx/configs/xtrs/pashello/Make.defs +++ b/nuttx/configs/xtrs/pashello/Make.defs @@ -35,7 +35,7 @@ include ${TOPDIR}/.config -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = --debug else ARCHOPTIMIZATION = diff --git a/nuttx/configs/xtrs/pashello/defconfig b/nuttx/configs/xtrs/pashello/defconfig index 4b90c71495..10612e62da 100644 --- a/nuttx/configs/xtrs/pashello/defconfig +++ b/nuttx/configs/xtrs/pashello/defconfig @@ -99,6 +99,8 @@ CONFIG_LINKER_ROM_AT_0000=y # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -161,6 +163,7 @@ CONFIG_LINKER_ROM_AT_0000=y CONFIG_EXAMPLE=pashello CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/configs/z16f2800100zcog/ostest/Make.defs b/nuttx/configs/z16f2800100zcog/ostest/Make.defs index 273811bf70..be82296e58 100644 --- a/nuttx/configs/z16f2800100zcog/ostest/Make.defs +++ b/nuttx/configs/z16f2800100zcog/ostest/Make.defs @@ -62,7 +62,7 @@ EZDSZILOGINCDIR := ${shell echo "$(WZDSZILOGINCDIR)" | sed -e "s/ /%20/g"} # Assembler definitions -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHASMOPTIMIZATION = -debug else ARCHASMOPTIMIZATION = -nodebug @@ -78,7 +78,7 @@ AFLAGS = $(ARCHASMCPUFLAGS) $(ARCHASMINCLUDES) $(ARCHASMLIST) \ # Compiler definitions -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -debug -NOregvar -reduceopt else ARCHOPTIMIZATION = -nodebug -regvar diff --git a/nuttx/configs/z16f2800100zcog/ostest/defconfig b/nuttx/configs/z16f2800100zcog/ostest/defconfig index c3ef39ae6b..b453d02350 100644 --- a/nuttx/configs/z16f2800100zcog/ostest/defconfig +++ b/nuttx/configs/z16f2800100zcog/ostest/defconfig @@ -129,6 +129,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -190,6 +192,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=ostest CONFIG_DEBUG=y CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=200 diff --git a/nuttx/configs/z16f2800100zcog/pashello/Make.defs b/nuttx/configs/z16f2800100zcog/pashello/Make.defs index dd59792767..19fa125e5e 100755 --- a/nuttx/configs/z16f2800100zcog/pashello/Make.defs +++ b/nuttx/configs/z16f2800100zcog/pashello/Make.defs @@ -62,7 +62,7 @@ EZDSZILOGINCDIR := ${shell echo "$(WZDSZILOGINCDIR)" | sed -e "s/ /%20/g"} # Assembler definitions -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHASMOPTIMIZATION = -debug else ARCHASMOPTIMIZATION = -nodebug @@ -78,7 +78,7 @@ AFLAGS = $(ARCHASMCPUFLAGS) $(ARCHASMINCLUDES) $(ARCHASMLIST) \ # Compiler definitions -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -debug -NOregvar -reduceopt else ARCHOPTIMIZATION = -nodebug -regvar diff --git a/nuttx/configs/z16f2800100zcog/pashello/defconfig b/nuttx/configs/z16f2800100zcog/pashello/defconfig index c896d8d0fc..257bc73809 100644 --- a/nuttx/configs/z16f2800100zcog/pashello/defconfig +++ b/nuttx/configs/z16f2800100zcog/pashello/defconfig @@ -129,6 +129,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -190,6 +192,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=pashello CONFIG_DEBUG=y CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=200 diff --git a/nuttx/configs/z80sim/nsh/Make.defs b/nuttx/configs/z80sim/nsh/Make.defs index 7a68aa29f6..15d49c9475 100644 --- a/nuttx/configs/z80sim/nsh/Make.defs +++ b/nuttx/configs/z80sim/nsh/Make.defs @@ -35,7 +35,7 @@ include ${TOPDIR}/.config -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = --debug else ARCHOPTIMIZATION = diff --git a/nuttx/configs/z80sim/nsh/defconfig b/nuttx/configs/z80sim/nsh/defconfig index bb0132da56..10e7a46517 100644 --- a/nuttx/configs/z80sim/nsh/defconfig +++ b/nuttx/configs/z80sim/nsh/defconfig @@ -89,6 +89,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -151,6 +153,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=nsh CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/configs/z80sim/ostest/Make.defs b/nuttx/configs/z80sim/ostest/Make.defs index e7895e0c6f..cd08364d6a 100644 --- a/nuttx/configs/z80sim/ostest/Make.defs +++ b/nuttx/configs/z80sim/ostest/Make.defs @@ -35,7 +35,7 @@ include ${TOPDIR}/.config -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = --debug else ARCHOPTIMIZATION = diff --git a/nuttx/configs/z80sim/ostest/defconfig b/nuttx/configs/z80sim/ostest/defconfig index 356e8e2f93..0e48ca1dcb 100644 --- a/nuttx/configs/z80sim/ostest/defconfig +++ b/nuttx/configs/z80sim/ostest/defconfig @@ -89,6 +89,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -151,6 +153,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=ostest CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/configs/z80sim/pashello/Make.defs b/nuttx/configs/z80sim/pashello/Make.defs index 3b38184b51..d00e1b609f 100644 --- a/nuttx/configs/z80sim/pashello/Make.defs +++ b/nuttx/configs/z80sim/pashello/Make.defs @@ -35,7 +35,7 @@ include ${TOPDIR}/.config -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = --debug else ARCHOPTIMIZATION = diff --git a/nuttx/configs/z80sim/pashello/defconfig b/nuttx/configs/z80sim/pashello/defconfig index bbe04d08fd..7b95e2bd19 100644 --- a/nuttx/configs/z80sim/pashello/defconfig +++ b/nuttx/configs/z80sim/pashello/defconfig @@ -89,6 +89,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -151,6 +153,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=pashello CONFIG_DEBUG=n CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/configs/z8encore000zco/ostest/Make.defs b/nuttx/configs/z8encore000zco/ostest/Make.defs index 880c79e868..cd76f5da36 100644 --- a/nuttx/configs/z8encore000zco/ostest/Make.defs +++ b/nuttx/configs/z8encore000zco/ostest/Make.defs @@ -88,7 +88,7 @@ ARCHCPUDEF = _Z8F6403 endif endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHASMOPTIMIZATION = -debug -sdiopt else ARCHASMOPTIMIZATION = -nodebug -sdiopt @@ -105,7 +105,7 @@ AFLAGS = $(ARCHASMCPUFLAGS) $(ARCHASMINCLUDES) $(ARCHASMLIST) \ # Compiler definitions -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -debug -NOregvar -reduceopt else ARCHOPTIMIZATION = -nodebug -regvar diff --git a/nuttx/configs/z8encore000zco/ostest/defconfig b/nuttx/configs/z8encore000zco/ostest/defconfig index 7352a5466f..24b0767233 100644 --- a/nuttx/configs/z8encore000zco/ostest/defconfig +++ b/nuttx/configs/z8encore000zco/ostest/defconfig @@ -121,6 +121,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -185,6 +187,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=ostest CONFIG_DEBUG=y CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/configs/z8f64200100kit/ostest/Make.defs b/nuttx/configs/z8f64200100kit/ostest/Make.defs index 1428ef207e..f698e35b65 100644 --- a/nuttx/configs/z8f64200100kit/ostest/Make.defs +++ b/nuttx/configs/z8f64200100kit/ostest/Make.defs @@ -88,7 +88,7 @@ ARCHCPUDEF = _Z8F6403 endif endif -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHASMOPTIMIZATION = -debug -sdiopt else ARCHASMOPTIMIZATION = -nodebug -sdiopt @@ -105,7 +105,7 @@ AFLAGS = $(ARCHASMCPUFLAGS) $(ARCHASMINCLUDES) $(ARCHASMLIST) \ # Compiler definitions -ifeq ("${CONFIG_DEBUG}","y") +ifeq ("${CONFIG_DEBUG_SYMBOLS}","y") ARCHOPTIMIZATION = -debug -NOregvar -reduceopt else ARCHOPTIMIZATION = -nodebug -regvar diff --git a/nuttx/configs/z8f64200100kit/ostest/defconfig b/nuttx/configs/z8f64200100kit/ostest/defconfig index 0e0594b82c..04388fc024 100644 --- a/nuttx/configs/z8f64200100kit/ostest/defconfig +++ b/nuttx/configs/z8f64200100kit/ostest/defconfig @@ -121,6 +121,8 @@ CONFIG_HAVE_LIBM=n # that will be used in the build # CONFIG_DEBUG - enables built-in debug options # CONFIG_DEBUG_VERBOSE - enables verbose debug output +# CONFIG_DEBUG_SYMBOLS - build without optimization and with +# debug symbols (needed for use with a debugger). # CONFIG_MM_REGIONS - If the architecture includes multiple # regions of memory to allocate from, this specifies the # number of memory regions that the memory manager must @@ -185,6 +187,7 @@ CONFIG_HAVE_LIBM=n CONFIG_EXAMPLE=ostest CONFIG_DEBUG=y CONFIG_DEBUG_VERBOSE=n +CONFIG_DEBUG_SYMBOLS=n CONFIG_MM_REGIONS=1 CONFIG_ARCH_LOWPUTC=y CONFIG_RR_INTERVAL=0 diff --git a/nuttx/include/debug.h b/nuttx/include/debug.h index e0caefeeb4..f7dce775e7 100644 --- a/nuttx/include/debug.h +++ b/nuttx/include/debug.h @@ -177,9 +177,9 @@ #endif #ifdef CONFIG_DEBUG_BINFMT -# define bdbg(format, arg...) dbg(format, ##arg) +# define bdbg(format, arg...) lldbg(format, ##arg) # define blldbg(format, arg...) lldbg(format, ##arg) -# define bvdbg(format, arg...) vdbg(format, ##arg) +# define bvdbg(format, arg...) llvdbg(format, ##arg) # define bllvdbg(format, arg...) llvdbg(format, ##arg) #else # define bdbg(x...) @@ -298,9 +298,9 @@ #endif #ifdef CONFIG_DEBUG_BINFMT -# define bdbg dbg +# define bdbg lldbg # define blldbg lldbg -# define bvdbg vdbg +# define bvdbg llvdbg # define bllvdbg llvdbg #else # define bdbg (void) |