1 --- src/3rdparty/chromium/v8/src/trap-handler/handler-inside-posix.cc.orig	2025-08-15 18:30:00 UTC
2 +++ src/3rdparty/chromium/v8/src/trap-handler/handler-inside-posix.cc
3 @@ -61,6 +61,8 @@ namespace trap_handler {
4  #define CONTEXT_REG(reg, REG) &uc->uc_mcontext->__ss.__##reg
5  #elif V8_OS_FREEBSD
6  #define CONTEXT_REG(reg, REG) &uc->uc_mcontext.mc_##reg
7 +#elif V8_OS_OPENBSD
8 +#define CONTEXT_REG(reg, REG) &uc->sc_##reg
9  #else
10  #error "Unsupported platform."
11  #endif
12 @@ -80,8 +82,12 @@ bool IsKernelGeneratedSignal(siginfo_t* info) {
13    // si_code at its default of 0 for signals that don’t originate in hardware.
14    // The other conditions are only relevant for Linux.
15    return info->si_code > 0 && info->si_code != SI_USER &&
16 -         info->si_code != SI_QUEUE && info->si_code != SI_TIMER &&
17 -         info->si_code != SI_ASYNCIO && info->si_code != SI_MESGQ;
18 +         info->si_code != SI_QUEUE && info->si_code != SI_TIMER
19 +#ifdef V8_OS_OPENBSD
20 +         ;
21 +#else
22 +         && info->si_code != SI_ASYNCIO && info->si_code != SI_MESGQ;
23 +#endif
24  }
25 
26  class UnmaskOobSignalScope {
27