[Mesa-dev] [PATCH v2 1/2] gallium/util: Don't stub u_debug_stack on Android

Stefan Schake stschake at gmail.com
Sun Apr 15 22:45:16 UTC 2018


The fallback path for no libunwind ends up being stubs for Android.
Don't compile them in so we can provide our own implementation.

Signed-off-by: Stefan Schake <stschake at gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>
---
v2: Explain why we special-case Android (Eric)

 src/gallium/auxiliary/util/u_debug_stack.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/util/u_debug_stack.c b/src/gallium/auxiliary/util/u_debug_stack.c
index 846f648..b1d4cfe 100644
--- a/src/gallium/auxiliary/util/u_debug_stack.c
+++ b/src/gallium/auxiliary/util/u_debug_stack.c
@@ -193,7 +193,8 @@ debug_backtrace_print(FILE *f,
             frame_ip(&backtrace[i]));
    }
 }
-
+#elif defined(ANDROID)
+   /* Not implemented here; see u_debug_stack_android.cpp */
 #else /* ! HAVE_LIBUNWIND */
 
 #if defined(PIPE_OS_WINDOWS)
-- 
2.7.4



More information about the mesa-dev mailing list