Usermode/libc++ - Debug in cxa code, list emplace and iterators, general STL fixes
[tpg/acess2.git] / Usermode / Libraries / libc++.so_src / cxxabi.cc
index 84cedf2..ad8adbd 100644 (file)
@@ -10,6 +10,7 @@
  * http://libcxxabi.llvm.org/spec.html
  */
 #include <cxxabi.h>
+#include <acess/sys.h>
 
 namespace __cxxabiv1 {
 
@@ -34,3 +35,17 @@ __vmi_class_type_info::~__vmi_class_type_info()
 
 };     // namespace __cxxabiv1
 
+extern "C" void __cxa_bad_cast ()
+{
+       _SysDebug("__cxa_bad_cast");
+       for(;;);
+       //throw ::std::bad_cast;
+}
+
+extern "C" void __cxa_bad_typeid ()
+{
+       _SysDebug("__cxa_bad_typeid");
+       for(;;);
+       //throw ::std::bad_typeid;
+}
+

UCC git Repository :: git.ucc.asn.au