summaryrefslogtreecommitdiffstats
path: root/main/xulrunner/ipc-chromium-execinfo.patch
blob: 4bbc143d81a6d568b225b39bc9a5d6f999b093e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- mozilla-2.0.orig/ipc/chromium/src/base/debug_util_posix.cc
+++ mozilla-2.0/ipc/chromium/src/base/debug_util_posix.cc
@@ -12,7 +12,6 @@
 #include <sys/types.h>
 #include <unistd.h>
 #ifndef ANDROID
-#include <execinfo.h>
 #include <sys/sysctl.h>
 #endif
 
@@ -116,6 +115,7 @@
 }
 
 StackTrace::StackTrace() {
+#if 0
   const int kMaxCallers = 256;
 
   void* callers[kMaxCallers];
@@ -134,12 +134,15 @@
   } else {
     trace_.resize(0);
   }
+#endif
 }
 
 void StackTrace::PrintBacktrace() {
+#if 0
   fflush(stderr);
 #ifndef ANDROID
   backtrace_symbols_fd(&trace_[0], trace_.size(), STDERR_FILENO);
+#endif
 #endif
 }