2020-07-12 09:15:11 +02:00
|
|
|
--- ./src/OSspecific/POSIX/printStack/printStack.C.orig 2021-12-01 03:15:50.000000000 +0100
|
|
|
|
+++ ./src/OSspecific/POSIX/printStack/printStack.C 2021-12-01 03:15:50.000000000 +0100
|
|
|
|
@@ -33,7 +33,9 @@
|
2017-11-22 19:40:17 +01:00
|
|
|
|
|
|
|
#include <cinttypes>
|
|
|
|
#include <cxxabi.h>
|
|
|
|
+#ifndef __ANDROID__
|
|
|
|
#include <execinfo.h>
|
|
|
|
+#endif
|
|
|
|
#include <dlfcn.h>
|
|
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
2020-07-12 09:15:11 +02:00
|
|
|
@@ -210,6 +212,7 @@
|
2017-11-22 19:40:17 +01:00
|
|
|
|
|
|
|
void Foam::error::safePrintStack(std::ostream& os)
|
|
|
|
{
|
|
|
|
+ #ifndef __ANDROID__
|
|
|
|
// Get raw stack symbols
|
|
|
|
void *array[100];
|
|
|
|
size_t size = backtrace(array, 100);
|
2020-07-12 09:15:11 +02:00
|
|
|
@@ -225,11 +228,13 @@
|
2017-11-22 19:40:17 +01:00
|
|
|
|
|
|
|
os << '#' << label(i) << '\t' << msg << std::endl;
|
|
|
|
}
|
|
|
|
+ #endif
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Foam::error::printStack(Ostream& os)
|
|
|
|
{
|
|
|
|
+ #ifndef __ANDROID__
|
|
|
|
// Get raw stack symbols
|
|
|
|
const size_t CALLSTACK_SIZE = 128;
|
|
|
|
|
2020-07-12 09:15:11 +02:00
|
|
|
@@ -267,6 +272,7 @@
|
2017-11-22 19:40:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
delete info;
|
|
|
|
+ #endif
|
|
|
|
}
|
|
|
|
|
|
|
|
|