[ScriptInterpreter] Limit LLDB's globals to interactive mode.
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 18 Sep 2019 00:30:01 +0000 (00:30 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 18 Sep 2019 00:30:01 +0000 (00:30 +0000)
commit20b52c33ba3960340ecf326314517091b8ec98f4
treed70612f82a6ee1469f6c7fe10e3b519a6a8c428e
parent6e353b4df3aa452ed4741a5e5caea02b1a876d8c
[ScriptInterpreter] Limit LLDB's globals to interactive mode.

Jim pointed out that the LLDB global variables should only be available
in interactive mode. When used from a command for example, their values
might be stale or not at all what the user expects. Therefore we want to
explicitly make these variables unavailable.

Differential revision: https://reviews.llvm.org/D67685

llvm-svn: 372192
lldb/lit/Commands/Inputs/frame.py
lldb/lit/Commands/command-script-import.test
lldb/packages/Python/lldbsuite/test/commands/frame/recognizer/recognizer.py
lldb/packages/Python/lldbsuite/test/python_api/sbvalue_const_addrof/main.cpp
lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp