This is an archive of the discontinued LLVM Phabricator instance.

Print a warning when stopped in a frame LLDB has no plugin for.
ClosedPublic

Authored by aprantl on May 21 2020, 5:48 PM.

Details

Summary

This patchs adds an optional warning that is printed when stopped at a
frame that was compiled in a source language that LLDB has no plugin
for.

The motivational use-case is debugging Swift code on Linux. When the
user accidentally invokes the system LLDB that was built without the
Swift plugin, it is very much non-obvious why debugging doesnt
work. This warning makes it easy to figure out what went wrong.

rdar://problem/56986569

Diff Detail

Event Timeline

aprantl created this revision.May 21 2020, 5:48 PM
JDevlieghere added inline comments.May 22 2020, 10:26 AM
lldb/source/Target/Process.cpp
5808

For eWarningsOptimization this check happens in PrintWarning. I think your approach is better, but it'd be nice for the two to be consistent.

aprantl updated this revision to Diff 265808.May 22 2020, 3:23 PM

Address review feedback and add a similar test for the previously untested optimization warning.

This revision is now accepted and ready to land.May 22 2020, 3:25 PM