JDevlieghere added inline comments.
================ Comment at: lldb/source/API/SBDebugger.cpp:175-186 + const ProgressEventData *progress_data = + ProgressEventData::GetEventDataFromEvent(event.get()); + if (!progress_data) + return {}; + + auto dictionary = std::make_unique<StructuredData::Dictionary>(); + dictionary->AddStringItem("message", progress_data->GetMessage()); ---------------- mib wrote: > It feels wrong me that we're doing this at the SB API levels, I feel like we > should have an overload of `ProgressEventData::GetEventDataFromEvent` that > returns an actual structured data dictionary. This way, when we extend the > progress events, we won't need to update all the places where > `GetEventDataFromEvent` is called from. Good point, I totally agree. I'll move the code into the ProgressEventData and DiagnosticEventData respectively and have that return a StructuredData dictionary. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D143687/new/ https://reviews.llvm.org/D143687 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits