[libcxxabi]: why does not the default unexpected handler call terminate() in libcxxabi?

When I executed testsuites in
libcxx/test/depr/exception.unexpected/set.unexpected directory, it failed to
verify the default unexpected handler.
I saw the code in libcxx/src/exception.cpp:

I believe the bottom line is that libcxx/libcxxabi hasn't been ported to your platform. The 3rd #else/#endif branch in libcxx/src/exception.cpp is not being used by anyone that I'm aware of.

I recommend getting into the branch __has_include(<cxxabi.h>) which will #define _LIBCPPABI_VERSION (which comes from libcxxabi. But this is porting work you (or someone) will have to do.

Howard

Howard Hinnant wrote

I believe the bottom line is that libcxx/libcxxabi hasn't been ported to
your platform. The 3rd #else/#endif branch in libcxx/src/exception.cpp is
not being used by anyone that I'm aware of.

I recommend getting into the branch __has_include(
<cxxabi.h>
) which will #define _LIBCPPABI_VERSION (which comes from libcxxabi. But
this is porting work you (or someone) will have to do.

Howard

Thanks, Howard!
I'm doing this porting work for my compiler on linux.