This is an archive of the discontinued LLVM Phabricator instance.

[lldb/crashlog] Skip non-crashed threads in batch mode
ClosedPublic

Authored by mib on Aug 14 2023, 3:07 AM.

Details

Summary

When using the crashlog command in batch mode, most users only care
about the crashed thread and end up having to scroll past all the
non-crashed threads, which is not a good user experience.

Now that -c|--crashed-only is set by default, we should also apply
that behavior for batch mode: Only the crashed thread and "Application
Specific Backtrace" threads will be shown to the user in batch mode.

The user will still have the ability to show all the threads if they use
--no-crashed-only which will parse the symbols from the report, or
with -a|--load-all-images which will fetch binaries and debug info
from the build record and symbolicate every thread.

rdar://106329893

Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>

Diff Detail

Event Timeline

mib created this revision.Aug 14 2023, 3:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 14 2023, 3:07 AM
mib requested review of this revision.Aug 14 2023, 3:07 AM
This revision is now accepted and ready to land.Aug 15 2023, 1:00 PM
bulbazord accepted this revision.Aug 15 2023, 1:01 PM
This revision was automatically updated to reflect the committed changes.