123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
-
- #ifndef __CXXABI_H_
- #define __CXXABI_H_
- #include <stdint.h>
- #include "unwind.h"
- namespace std
- {
- class type_info;
- }
- /*
- * The cxxabi.h header provides a set of public definitions for types and
- * functions defined by the Itanium C++ ABI specification. For reference, see
- * the ABI specification here:
- *
- * http://sourcery.mentor.com/public/cxx-abi/abi.html
- *
- * All deviations from this specification, unless otherwise noted, are
- * accidental.
- */
- #ifdef __cplusplus
- namespace __cxxabiv1 {
- extern "C" {
- #endif
- typedef void (*unexpected_handler)();
- typedef void (*terminate_handler)();
- struct __cxa_exception
- {
- #if __LP64__
-
- uintptr_t referenceCount;
- #endif
-
- std::type_info *exceptionType;
-
- void (*exceptionDestructor) (void *);
-
- unexpected_handler unexpectedHandler;
-
- terminate_handler terminateHandler;
-
- __cxa_exception *nextException;
-
- int handlerCount;
- #ifdef __arm__
-
- _Unwind_Exception *nextCleanup;
-
- int cleanupCount;
- #endif
-
- int handlerSwitchValue;
-
- const char *actionRecord;
-
- const char *languageSpecificData;
-
- void *catchTemp;
-
- void *adjustedPtr;
- #if !__LP64__
-
- uintptr_t referenceCount;
- #endif
-
- _Unwind_Exception unwindHeader;
- };
- struct __cxa_eh_globals
- {
-
- __cxa_exception *caughtExceptions;
-
- unsigned int uncaughtExceptions;
- };
- __cxa_eh_globals *__cxa_get_globals(void);
- __cxa_eh_globals *__cxa_get_globals_fast(void);
- void __cxa_rethrow_primary_exception(void* thrown_exception);
- void *__cxa_current_primary_exception(void);
- void __cxa_increment_exception_refcount(void* thrown_exception);
- void __cxa_decrement_exception_refcount(void* thrown_exception);
- char* __cxa_demangle(const char* mangled_name,
- char* buf,
- size_t* n,
- int* status);
- #ifdef __cplusplus
- }
- }
- namespace abi = __cxxabiv1;
- #endif
- #endif
|