aboutsummaryrefslogtreecommitdiff
path: root/devel/electron23/files/patch-components_gwp__asan_crash__handler_crash__analyzer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron23/files/patch-components_gwp__asan_crash__handler_crash__analyzer.cc')
-rw-r--r--devel/electron23/files/patch-components_gwp__asan_crash__handler_crash__analyzer.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron23/files/patch-components_gwp__asan_crash__handler_crash__analyzer.cc b/devel/electron23/files/patch-components_gwp__asan_crash__handler_crash__analyzer.cc
new file mode 100644
index 000000000000..aaee4975f5dc
--- /dev/null
+++ b/devel/electron23/files/patch-components_gwp__asan_crash__handler_crash__analyzer.cc
@@ -0,0 +1,20 @@
+--- components/gwp_asan/crash_handler/crash_analyzer.cc.orig 2022-02-28 16:54:41 UTC
++++ components/gwp_asan/crash_handler/crash_analyzer.cc
+@@ -26,7 +26,7 @@
+ #include "third_party/crashpad/crashpad/snapshot/process_snapshot.h"
+ #include "third_party/crashpad/crashpad/util/process/process_memory.h"
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD)
+ #include <signal.h>
+ #elif BUILDFLAG(IS_APPLE)
+ #include <mach/exception_types.h>
+@@ -81,7 +81,7 @@ bool CrashAnalyzer::GetExceptionInfo(
+
+ crashpad::VMAddress CrashAnalyzer::GetAccessAddress(
+ const crashpad::ExceptionSnapshot& exception) {
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD)
+ if (exception.Exception() == SIGSEGV || exception.Exception() == SIGBUS)
+ return exception.ExceptionAddress();
+ #elif BUILDFLAG(IS_APPLE)