Closed davidchisnall closed 4 years ago
@triplef, this version completely removes any static knowledge of the __cxa_exception
structure and so should be less problematic with different C++ runtime libraries. Please can you test it on the platforms that you care about and see if it makes things better (or, at least, no worse!)?
Never mind, it looks as if libsupc++ doesn't support the library function that this depends on.
I can probably work around it using std::exception_ptr
, since libstdc++ platforms typically also require linking to libstdc++
.
The new version now does not depend on the layout of the C++ exception structure and instead finds the two offsets that it cares about.
Fixes #108