Commit 40a975ff by Francois Bleibel Committed by Copybara-Service

Add stacktrace config for android using the generic implementation

This change adds support for unwinding stack traces on supported android platforms (NDK 33+) to absl::GetStackTrace().

PiperOrigin-RevId: 668041186
Change-Id: Ie4c4c123686050c6b81683b71fe0246e8fa75f2b
parent 9457dfd9
...@@ -42,6 +42,13 @@ ...@@ -42,6 +42,13 @@
#define ABSL_STACKTRACE_INL_HEADER \ #define ABSL_STACKTRACE_INL_HEADER \
"absl/debugging/internal/stacktrace_emscripten-inl.inc" "absl/debugging/internal/stacktrace_emscripten-inl.inc"
#elif defined(__ANDROID__) && __ANDROID_API__ >= 33
// Use the generic implementation for Android 33+ (Android T+). This is the
// first version of Android for which <execinfo.h> implements backtrace().
#define ABSL_STACKTRACE_INL_HEADER \
"absl/debugging/internal/stacktrace_generic-inl.inc"
#elif defined(__linux__) && !defined(__ANDROID__) #elif defined(__linux__) && !defined(__ANDROID__)
#if defined(NO_FRAME_POINTER) && \ #if defined(NO_FRAME_POINTER) && \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment