uClibc++ exceptions are working

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5312 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2012-11-05 13:30:00 +00:00
parent 00add0f0b2
commit 021260e0ea
3 changed files with 9 additions and 6 deletions

View File

@ -215,9 +215,11 @@ cxxtest
b. Execute 'make menuconfig' in nuttx/ in order to start the
reconfiguration process.
3. At present (2012/11/02), this example builds only with exceptions
disabled (CONFIG_UCLIBCXX_EXCEPTIONS=n). And even then, it will
not run.
3. At present (2012/11/02), exceptions are disabled in this example
CONFIG_UCLIBCXX_EXCEPTIONS=n). It is probably not necessary to
disable exceptions.
4. Unfortunately, this example will not run now.
The reason that the example will not run on the simulator has
to do with when static constructors are enabled: In the simulator

View File

@ -1035,8 +1035,7 @@ Where <subdir> is one of the following:
arm-none-eabi-ar.exe rcs libsupc++.a vterminate.o
4. At present (2012/11/02), this example builds only with exceptions
disabled (CONFIG_UCLIBCXX_EXCEPTIONS=n).
4. Exceptions are enabled and workking (CONFIG_UCLIBCXX_EXCEPTIONS=y)
elf:
---

View File

@ -73,6 +73,8 @@ CONFIG_ARCH_CHIP_STM32=y
CONFIG_ARCH_CORTEXM4=y
CONFIG_ARCH_FAMILY="armv7-m"
CONFIG_ARCH_CHIP="stm32"
CONFIG_ARCH_HAVE_CMNVECTOR=y
# CONFIG_ARMV7M_CMNVECTOR is not set
# CONFIG_ARCH_FPU is not set
CONFIG_ARCH_HAVE_MPU=y
# CONFIG_ARMV7M_MPU is not set
@ -414,7 +416,7 @@ CONFIG_HAVE_CXXINITIALIZE=y
# uClibc++ Standard C++ Library
#
CONFIG_UCLIBCXX=y
# CONFIG_UCLIBCXX_EXCEPTION is not set
CONFIG_UCLIBCXX_EXCEPTION=y
CONFIG_UCLIBCXX_IOSTREAM_BUFSIZE=32
CONFIG_UCLIBCXX_HAVE_LIBSUPCXX=y