This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Expose diagnostic events through the SB API
ClosedPublic

Authored by JDevlieghere on Mar 16 2022, 9:18 AM.

Details

Summary

Expose diagnostic events through the SB API. Unlike the progress events, I chose to use a SBStructuredData so that we can add fields in the future.

Diff Detail

Event Timeline

JDevlieghere created this revision.Mar 16 2022, 9:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 16 2022, 9:18 AM
JDevlieghere requested review of this revision.Mar 16 2022, 9:18 AM
mib accepted this revision.Mar 16 2022, 9:49 AM

LGTM! We should have chosen to return a StructuredData for ProgressEvents as well

This revision is now accepted and ready to land.Mar 16 2022, 9:49 AM

Use the minidump warning to check for an actual event.

Yes, if we had had the SBStructuredData class from the start, that would have been a clearer, more robust and flexible way to do the event data in general. But at this point the event data word meanings are API so we can't really remove the old way.

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 16 2022, 3:03 PM