1 --- src/3rdparty/chromium/base/debug/stack_trace.cc.orig	2025-08-15 18:30:00 UTC
2 +++ src/3rdparty/chromium/base/debug/stack_trace.cc
3 @@ -267,7 +267,7 @@ bool StackTrace::WillSymbolizeToStreamForTesting() {
4    // Symbols are not expected to be reliable when gn args specifies
5    // symbol_level=0.
6    return false;
7 -#elif defined(__UCLIBC__) || defined(_AIX)
8 +#elif defined(__UCLIBC__) || defined(_AIX) || BUILDFLAG(IS_BSD)
9    // StackTrace::OutputToStream() is not implemented under uclibc, nor AIX.
10    // See https://crbug.com/706728
11    return false;
12 @@ -320,7 +320,9 @@ void StackTrace::OutputToStreamWithPrefix(std::ostream
13      }
14      return;
15    }
16 +#if !BUILDFLAG(IS_BSD)
17    OutputToStreamWithPrefixImpl(os, prefix_string);
18 +#endif
19  }
20 
21  std::string StackTrace::ToString() const {
22 @@ -329,7 +331,7 @@ std::string StackTrace::ToStringWithPrefix(cstring_vie
23 
24  std::string StackTrace::ToStringWithPrefix(cstring_view prefix_string) const {
25    std::stringstream stream;
26 -#if !defined(__UCLIBC__) && !defined(_AIX)
27 +#if !defined(__UCLIBC__) && !defined(_AIX) && !BUILDFLAG(IS_BSD)
28    OutputToStreamWithPrefix(&stream, prefix_string);
29  #endif
30    return stream.str();
31 @@ -353,7 +355,7 @@ std::ostream& operator<<(std::ostream& os, const Stack
32  }
33 
34  std::ostream& operator<<(std::ostream& os, const StackTrace& s) {
35 -#if !defined(__UCLIBC__) && !defined(_AIX)
36 +#if !defined(__UCLIBC__) && !defined(_AIX) && !BUILDFLAG(IS_BSD)
37    s.OutputToStream(&os);
38  #else
39    os << "StackTrace::OutputToStream not implemented.";
40