c++ throw catch handling stucks in catch on pc386
Heinz P. Junkes
junkes at fhi-berlin.mpg.de
Thu Mar 16 21:23:45 UTC 2017
Running build/pc386/i386-rtems4.12/c/pc386/testsuites/samples/cdtest
stucks in catch exception
*** BEGIN OF TEST CONSTRUCTOR/DESTRUCTOR ***
GLOBAL: Hey I'm in base class constructor number 1 for 0x14b410.
GLOBAL: Hey I'm in base class constructor number 2 for 0x14b404.
GLOBAL: Hey I'm in derived class constructor number 3 for 0x14b404.
LOCAL: Hey I'm in base class constructor number 4 for 0x1554f0.
LOCAL: Hey I'm in base class constructor number 5 for 0x1554fc.
LOCAL: Hey I'm in base class constructor number 6 for 0x155508.
LOCAL: Hey I'm in base class constructor number 7 for 0x155514.
LOCAL: Hey I'm in derived class constructor number 8 for 0x155514.
IO Stream not tested
LOCAL: Hey I'm in derived class destructor number 8 for 155514.
Derived class - Instantiation order 8
LOCAL: Hey I'm in base class destructor number 7 for 155514.
Derived class - Instantiation order 8
LOCAL: Hey I'm in base class destructor number 6 for 155508.
Derived class - Instantiation order 6
LOCAL: Hey I'm in base class destructor number 5 for 1554FC.
Derived class - Instantiation order 5
LOCAL: Hey I'm in base class destructor number 4 for 1554F0.
Derived class - Instantiation order 5
*** TESTING C++ EXCEPTIONS ***
foo_function() catch block called:
< foo_function() throw this exception >
Success catching a char * exception
foo_function() re-throwing execption...
throw std::runtime: caught: thrown std::runtime object
--------- no more output ------------------
Works with RTEMS-beatnik.
rtems master 4.12
commit a11e1ff57688a5cee5b0f807b970fe9eec05ac62
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Mar 7 07:58:11 2017 +0100
Started in qemu with
qemu-system-i386 -kernel cdtest.exe -vga std -net
nic,vlan=0,model=ne2k_pci -net user,vlan=0 -append "--console=/dev/com1"
-serial stdio
Cheers,
Heinz
More information about the users
mailing list