Print a warning when stopped in a frame LLDB has no plugin for.
authorAdrian Prantl <aprantl@apple.com>
Fri, 22 May 2020 00:42:24 +0000 (17:42 -0700)
committerAdrian Prantl <aprantl@apple.com>
Fri, 22 May 2020 22:37:36 +0000 (15:37 -0700)
commit220c17ffd4e1b127bcc02b25980b7934184ee1da
tree3ef8a1f5a60a93aa72c3d7ea3e76f0b94618aae4
parent0231227e5d8a7c4737ce2316dae01b63a2adfbe5
Print a warning when stopped in a frame LLDB has no plugin for.

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>
lldb/include/lldb/Target/Process.h
lldb/source/Target/Process.cpp
lldb/source/Target/TargetProperties.td
lldb/source/Target/Thread.cpp
lldb/test/Shell/Process/Inputs/true.c [new file with mode: 0644]
lldb/test/Shell/Process/Optimization.test [new file with mode: 0644]
lldb/test/Shell/Process/UnsupportedLanguage.test [new file with mode: 0644]