This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Prevent Overflow (Underflow) error in crashlog.py
ClosedPublic

Authored by JDevlieghere on May 16 2022, 11:47 AM.

Details

Summary

Avoid a OverflowError when the pc is zero. This can happen for "unknown frames" where the crashlog generator reports a zero pc. We could omit them altogether, but if they're part of the crashlog it seems fair to display them in lldb as well.

rdar://92686666

Diff Detail

Event Timeline

JDevlieghere created this revision.May 16 2022, 11:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 16 2022, 11:47 AM
JDevlieghere requested review of this revision.May 16 2022, 11:47 AM
mib accepted this revision.May 16 2022, 2:42 PM

LGTM

This revision is now accepted and ready to land.May 16 2022, 2:42 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMay 16 2022, 3:00 PM