This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Hoist code to create StructuredData into DiagnosticEventData (NFC)
ClosedPublic

Authored by JDevlieghere on Feb 9 2023, 5:25 PM.

Details

Summary

Hoist the code that creates a StructuredData dictionary from a
diagnostic event into the DiagnosticEventData. This addresses Ismail's
code review feedback from D143687.

Diff Detail

Event Timeline

JDevlieghere created this revision.Feb 9 2023, 5:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 9 2023, 5:25 PM
JDevlieghere requested review of this revision.Feb 9 2023, 5:25 PM
mib accepted this revision.Feb 9 2023, 6:41 PM

LGTM with some nitpicks.

lldb/source/API/SBDebugger.cpp
175–176

nit: should be dictionary_sp

lldb/source/Core/DebuggerEvents.cpp
96

ditto

This revision is now accepted and ready to land.Feb 9 2023, 6:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 9 2023, 9:42 PM