Skip to content

Commit f9d91fb

Browse files
authored
[lldb] Always emit diagnostic events to the system log (llvm#90913)
Always emit diagnostic events to the system log so that they end up in the sysdiagnose on Darwin.
1 parent 49c5f4d commit f9d91fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lldb/source/Core/Debugger.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,6 +1512,9 @@ void Debugger::ReportDiagnosticImpl(Severity severity, std::string message,
15121512
std::optional<lldb::user_id_t> debugger_id,
15131513
std::once_flag *once) {
15141514
auto ReportDiagnosticLambda = [&]() {
1515+
// Always log diagnostics to the system log.
1516+
Host::SystemLog(severity, message);
1517+
15151518
// The diagnostic subsystem is optional but we still want to broadcast
15161519
// events when it's disabled.
15171520
if (Diagnostics::Enabled())

0 commit comments

Comments
 (0)