summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-base__debug__stack_trace_posix.cc
blob: 5ce9fd639feaad25704a8a369f632eec141e6045 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- ./base/debug/stack_trace_posix.cc.orig	2014-04-30 22:41:43.000000000 +0200
+++ ./base/debug/stack_trace_posix.cc	2014-05-04 15:46:56.000000000 +0200
@@ -586,6 +586,10 @@
   // for the modules that are loaded in the current process.
   // Returns true on success.
   bool CacheMemoryRegions() {
+#if defined(OS_FREEBSD)
+    // TODO (rene) avoid link error, implement something?
+    return false;
+#else
     // Reads /proc/self/maps.
     std::string contents;
     if (!ReadProcMaps(&contents)) {
@@ -601,6 +605,7 @@
 
     is_initialized_ = true;
     return true;
+#endif
   }
 
   // Opens all object files and caches their file descriptors.