/// Report warning events.
///
- /// Progress events will be delivered to any debuggers that have listeners
- /// for the eBroadcastBitError.
+ /// Warning events will be delivered to any debuggers that have listeners
+ /// for the eBroadcastBitWarning.
///
/// \param[in] message
/// The warning message to be reported.
///
/// \param [in] debugger_id
/// If this optional parameter has a value, it indicates the unique
- /// debugger identifier that this progress should be delivered to. If this
- /// optional parameter does not have a value, the progress will be
- /// delivered to all debuggers.
+ /// debugger identifier that this diagnostic should be delivered to. If
+ /// this optional parameter does not have a value, the diagnostic event
+ /// will be delivered to all debuggers.
///
/// \param [in] once
/// If a pointer is passed to a std::once_flag, then it will be used to
/// Report error events.
///
- /// Progress events will be delivered to any debuggers that have listeners
+ /// Error events will be delivered to any debuggers that have listeners
/// for the eBroadcastBitError.
///
/// \param[in] message
///
/// \param [in] debugger_id
/// If this optional parameter has a value, it indicates the unique
- /// debugger identifier that this progress should be delivered to. If this
- /// optional parameter does not have a value, the progress will be
- /// delivered to all debuggers.
+ /// debugger identifier that this diagnostic should be delivered to. If
+ /// this optional parameter does not have a value, the diagnostic event
+ /// will be delivered to all debuggers.
///
/// \param [in] once
/// If a pointer is passed to a std::once_flag, then it will be used to
llvm::Optional<lldb::user_id_t> debugger_id,
std::once_flag *once) {
auto ReportDiagnosticLambda = [&]() {
- // Check if this progress is for a specific debugger.
+ // Check if this diagnostic is for a specific debugger.
if (debugger_id) {
// It is debugger specific, grab it and deliver the event if the debugger
// still exists.
PrivateReportDiagnostic(*debugger_sp, type, std::move(message), true);
return;
}
- // The progress event is not debugger specific, iterate over all debuggers
- // and deliver a progress event to each one.
+ // The diagnostic event is not debugger specific, iterate over all debuggers
+ // and deliver a diagnostic event to each one.
if (g_debugger_list_ptr && g_debugger_list_mutex_ptr) {
std::lock_guard<std::recursive_mutex> guard(*g_debugger_list_mutex_ptr);
for (const auto &debugger : *g_debugger_list_ptr)
void Debugger::ReportError(std::string message,
llvm::Optional<lldb::user_id_t> debugger_id,
std::once_flag *once) {
-
ReportDiagnosticImpl(DiagnosticEventData::Type::Error, std::move(message),
debugger_id, once);
}