This is a preparatory patch to add an SB API to get the progress data as SBStructuredData. The approach is identical to the one taken for SBDebugger::GetDiagnosticFromEvent. By returning SBStructuredData we can grow the dictionary over time with more fields, which is what my follow up patch does.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lldb/source/API/SBDebugger.cpp | ||
---|---|---|
175–186 | 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. |
lldb/source/API/SBDebugger.cpp | ||
---|---|---|
175–186 | Good point, I totally agree. I'll move the code into the ProgressEventData and DiagnosticEventData respectively and have that return a StructuredData dictionary. |
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.