Page MenuHomePhabricator

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

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



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

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.


Diff Detail

Event Timeline

aprantl created this revision.Thu, May 21, 5:48 PM
JDevlieghere added inline comments.Fri, May 22, 10:26 AM

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.Fri, May 22, 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.Fri, May 22, 3:25 PM