libstdc++/4675: [VXWorks] __gthread_getspecific calls __terminate without parameters
rodrigc@gcc.gnu.org
rodrigc@gcc.gnu.org
Sun Jan 13 16:22:00 GMT 2002
Old Synopsis: __gthread_getspecific calls __terminate without parameters
New Synopsis: [VXWorks] __gthread_getspecific calls __terminate without parameters
State-Changed-From-To: open->feedback
State-Changed-By: rodrigc
State-Changed-When: Sun Jan 13 16:22:22 2002
State-Changed-Why:
Can you clarify what problem you are having with
libstdc++ on VXWorks?
On VXWorks, gcc/gthr-default.h includes gcc/gthr-vxworks.h
In gcc/gthr-vxworks.h, the following macro is defined:
#define __gthread_getspecific(key) \
((key == 0) \
? ((taskVarAdd (taskIdSelf (), &key) != OK) \
? (__terminate (), (void*)0) \
: (void*)0) \
: (void*)key)
You can find the signature for __terminate on your
system by doing an nm on the libstdc++ library.
On Linux, the signature for terminate seems to be:
00047fc0 T __cxxabiv1::__terminate(void (*)())
You probably do not want to call this function directly,
but instead use the std::set_terminate() call to set a
std::terminate_handler callback function:
http://www.tru64unix.compaq.com/cplus/docs/terminate_3c__std.htm
Is this what you are looking for?
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4675
More information about the Gcc-bugs
mailing list