This is an archive of the discontinued LLVM Phabricator instance.

"thread until": make sure the current function is valid before asking it questions
ClosedPublic

Authored by jingham on Feb 8 2022, 3:31 PM.

Details

Summary

Thread until was assuming that if you have debug information, you will have a function. Apparently some hand-crafted cross-library stubs can have debug information but no functions, and that was causing lldb to crash. This patch just adds a check for the function as well, and we error out if we don't have a function. The patch is sufficiently obvious I don't think it warrants the effort to make one of these odd constructs.

Diff Detail

Event Timeline

jingham requested review of this revision.Feb 8 2022, 3:31 PM
jingham created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 8 2022, 3:31 PM
JDevlieghere accepted this revision.Feb 8 2022, 3:33 PM

Makes sense. LGTM.

This revision is now accepted and ready to land.Feb 8 2022, 3:33 PM