From f9d91fbe86519f3083a9ae37b1e2038f6b8992a6 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Fri, 3 May 2024 09:45:16 -0700 Subject: [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. --- lldb/source/Core/Debugger.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index 065f70c..976420a 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 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()) -- cgit v1.1