[lldb] Emit diagnostic events in the diagnostic dump
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 31 Oct 2022 17:16:32 +0000 (10:16 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 31 Oct 2022 21:40:41 +0000 (14:40 -0700)
commit8aed0ce20fc6be41a7e49ea1433095d4cf583e56
tree3581d6d26f53383706fac9f6c15af1df7b1d0aae
parent0d01300aacf6029b6d63f7dcede3ca8e15229d34
[lldb] Emit diagnostic events in the diagnostic dump

Connect the diagnostic events with the diagnostic infrastructure.

 - Emit existing diagnostic events (warnings and errors) to the
   diagnostic log.
 - Introduce a new diagnostic event (info) that's used exclusively for
   diagnostic logging and does not get broadcast.

Differential revision: https://reviews.llvm.org/D136648
lldb/include/lldb/Core/Debugger.h
lldb/include/lldb/Core/DebuggerEvents.h
lldb/include/lldb/Utility/Diagnostics.h
lldb/source/Core/Debugger.cpp
lldb/source/Core/DebuggerEvents.cpp
lldb/source/Utility/Diagnostics.cpp
lldb/test/Shell/Diagnostics/TestDiagnosticsLog.test [new file with mode: 0644]