This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libstdc++/4675: [VXWorks] __gthread_getspecific calls __terminate without parameters


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]