diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2024-05-03 09:45:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-03 09:45:16 -0700 |
commit | f9d91fbe86519f3083a9ae37b1e2038f6b8992a6 (patch) | |
tree | 9d65365758dcd5be3973dbe1ca851f899cb4b2da | |
parent | 49c5f4d56a89278fcc426cabbeeec33e0915980e (diff) |
[lldb] Always emit diagnostic events to the system log (#90913)
Always emit diagnostic events to the system log so that they end up in
the sysdiagnose on Darwin.
-rw-r--r-- | lldb/source/Core/Debugger.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index 065f70c3880a..976420a43443 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -1512,6 +1512,9 @@ void Debugger::ReportDiagnosticImpl(Severity severity, std::string message, std::optional<lldb::user_id_t> debugger_id, std::once_flag *once) { auto ReportDiagnosticLambda = [&]() { + // Always log diagnostics to the system log. + Host::SystemLog(severity, message); + // The diagnostic subsystem is optional but we still want to broadcast // events when it's disabled. if (Diagnostics::Enabled()) |