llvm-project/lldb/test
Raphael Isemann 71536fd031 [lldb] Fix that running a top level expression without a process fails with a cryptic error
Right now when running `expr --top-level -- void foo() {}`, LLDB just prints a cryptic
`error: Couldn't find $__lldb_expr() in the module` error. The reason for that is
that if we don't have a running process, we try to set our execution policy to always use the
IR interpreter (ExecutionPolicyNever) which works even without a process. However
that code didn't consider the special ExecutionPolicyTopLevel which we use for
top-level expressions. By changing the execution policy to ExecutionPolicyNever,
LLDB thinks we're actually trying to interpret a normal expression inside our
`$__lldb_expr` function and then fails when looking for it.

This just adds an exception for top-level expressions to that code and a bunch of tests.

Reviewed By: shafik

Differential Revision: https://reviews.llvm.org/D91723
2021-02-11 17:07:11 +01:00
..
API [lldb] Fix that running a top level expression without a process fails with a cryptic error 2021-02-11 17:07:11 +01:00
Shell [LLDB] Fix buildbot regression in symbol-binding.test 2021-02-08 15:20:39 +05:00
Unit [lldb] Use config.lldb_src_root in lit_config.load_config (NFC) 2020-09-29 23:05:12 -07:00
CMakeLists.txt [lldb] [debugserver] Add stN aliases for stmmN for compatibility 2021-01-07 02:10:38 +01:00
lit.cfg.py [test] Cleanup top-level lit.cfg.py 2019-10-10 19:51:47 +00:00
lit.site.cfg.py.in [lldb] Get rid of helper CMake variables for Python 2020-08-17 08:47:52 -07:00