summaryrefslogtreecommitdiffstats
path: root/bridges
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-12-11 15:01:30 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-12-13 07:16:40 +0100
commit711f52336429d69e797d01f1c17e31d7e688e35c (patch)
tree9e3ce9f7df7725d42a108c5373e438df15a5f2b7 /bridges
parentExport RTTI symbols from liblo-native-code.so, for binary UNO bridge (diff)
downloadcore-711f52336429d69e797d01f1c17e31d7e688e35c.tar.gz
core-711f52336429d69e797d01f1c17e31d7e688e35c.zip
Adapt gcc3_linux_arm __cxa_exception to NDK 18 libc++abi
...which adds a member, and will be relevant when switching armeabi-v7a to libc++/libc++abi/libunwind (coming soon). Change-Id: I1f98f50ca299a583e73e0dbd6c8c94d973329f3a Reviewed-on: https://gerrit.libreoffice.org/64966 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'bridges')
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_arm/share.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/bridges/source/cpp_uno/gcc3_linux_arm/share.hxx b/bridges/source/cpp_uno/gcc3_linux_arm/share.hxx
index a39fe26a97b8..ac380969e21b 100644
--- a/bridges/source/cpp_uno/gcc3_linux_arm/share.hxx
+++ b/bridges/source/cpp_uno/gcc3_linux_arm/share.hxx
@@ -64,6 +64,15 @@ public:
namespace __cxxabiv1 {
struct __cxa_exception
{
+#if defined _LIBCPPABI_VERSION // detect libc++abi
+#if defined __LP64__ || defined __ARM_EABI__
+ // Quoting android-ndk-r18b/sources/cxx-stl/llvm-libc++abi/src/cxa_exception.hpp: "This is a
+ // new field to support C++ 0x exception_ptr. For binary compatibility it is at the start of
+ // this struct which is prepended to the object thrown in __cxa_allocate_exception."
+ std::size_t referenceCount;
+#endif
+#endif
+
std::type_info *exceptionType;
void (*exceptionDestructor)(void *);