This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Run crashlog inside lldb when invoked in interactive mode from the command line
ClosedPublic

Authored by JDevlieghere on Jun 6 2023, 4:33 PM.

Details

Summary

Run crashlog inside lldb when invoked in interactive mode from the command line. Currently, when passing -i to crashlog from the command line, we symbolicate in LLDB and immediately exit right after which pretty much defeats the purpose of interactive mode. On the other hand, we wouldn't want to reimplement the driver from the crashlog script. Re-invoking ourself from inside LLDB solves the issue.

rdar://97801509

Diff Detail

Event Timeline

JDevlieghere created this revision.Jun 6 2023, 4:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 6 2023, 4:33 PM
JDevlieghere requested review of this revision.Jun 6 2023, 4:33 PM
aprantl accepted this revision.Jun 6 2023, 4:40 PM

This is super convenient! Thanks!

This revision is now accepted and ready to land.Jun 6 2023, 4:40 PM
mib accepted this revision.Jun 6 2023, 5:47 PM

LGTM! Thanks for taking care of this :)

Herald added a project: Restricted Project. · View Herald TranscriptJun 7 2023, 4:21 PM