mcst-linux-kernel/patches-2024.06.26/gperftools-2.10/0003-Disable-libgcc-_Unwind...

32 lines
986 B
Diff

Link:
Subject: Disable libgcc _Unwind_Backtrace (bug 90681)
Bug: 146136
diff -Naur a/src/stacktrace.cc b/src/stacktrace.cc
--- a/src/stacktrace.cc 2023-07-05 13:19:51.540588613 +0000
+++ b/src/stacktrace.cc 2023-07-05 13:21:30.330301212 +0000
@@ -184,9 +184,9 @@
#endif
static GetStackImplementation *all_impls[] = {
-#ifdef HAVE_GST_libgcc
- &impl__libgcc,
-#endif
+//#ifdef HAVE_GST_libgcc
+// &impl__libgcc,
+//#endif
#ifdef HAVE_GST_generic
&impl__generic,
#endif
@@ -241,8 +241,8 @@
static GetStackImplementation *get_stack_impl = &impl__ppc;
#elif defined(HAVE_GST_libunwind)
static GetStackImplementation *get_stack_impl = &impl__libunwind;
-#elif defined(HAVE_GST_libgcc)
-static GetStackImplementation *get_stack_impl = &impl__libgcc;
+//#elif defined(HAVE_GST_libgcc)
+//static GetStackImplementation *get_stack_impl = &impl__libgcc;
#elif defined(HAVE_GST_generic)
static GetStackImplementation *get_stack_impl = &impl__generic;
#elif defined(HAVE_GST_arm)