Differential D38165 Diff 118368 www/qt5-webengine/files/patch-src_3rdparty_chromium_base_debug_stack__trace__posix.cc
Changeset View
Changeset View
Standalone View
Standalone View
www/qt5-webengine/files/patch-src_3rdparty_chromium_base_debug_stack__trace__posix.cc
--- src/3rdparty/chromium/base/debug/stack_trace_posix.cc.orig 2020-11-07 01:22:36 UTC | --- src/3rdparty/chromium/base/debug/stack_trace_posix.cc.orig 2021-12-15 16:12:54 UTC | ||||
+++ src/3rdparty/chromium/base/debug/stack_trace_posix.cc | +++ src/3rdparty/chromium/base/debug/stack_trace_posix.cc | ||||
@@ -35,7 +35,7 @@ | @@ -35,7 +35,7 @@ | ||||
#include <AvailabilityMacros.h> | #include <AvailabilityMacros.h> | ||||
#endif | #endif | ||||
-#if defined(OS_LINUX) | -#if defined(OS_LINUX) || defined(OS_CHROMEOS) | ||||
+#if defined(OS_LINUX) || defined(OS_BSD) | +#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) | ||||
#include "base/debug/proc_maps_linux.h" | #include "base/debug/proc_maps_linux.h" | ||||
#endif | #endif | ||||
@@ -697,7 +697,11 @@ class SandboxSymbolizeHelper { | @@ -697,7 +697,11 @@ class SandboxSymbolizeHelper { | ||||
// Skip regions with empty file names. | // Skip regions with empty file names. | ||||
continue; | continue; | ||||
} | } | ||||
+#if defined(OS_BSD) | +#if defined(OS_BSD) | ||||
+ if (region.path[0] == '-') { | + if (region.path[0] == '-') { | ||||
+#else | +#else | ||||
if (region.path[0] == '[') { | if (region.path[0] == '[') { | ||||
+#endif | +#endif | ||||
// Skip pseudo-paths, like [stack], [vdso], [heap], etc ... | // Skip pseudo-paths, like [stack], [vdso], [heap], etc ... | ||||
continue; | continue; | ||||
} | } |