aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-01-09 08:15:01 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2020-01-09 08:15:41 -0800
commit45c971f7eef18ef2b77a5f64133dbd7bd5939d5f (patch)
treed9341bb7a69ce9b198a0056cc8d7d7399d0128e5 /lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h
parent93a1e9c90c96a9130352bf358d7777f0379ebb48 (diff)
downloadllvm-45c971f7eef18ef2b77a5f64133dbd7bd5939d5f.zip
llvm-45c971f7eef18ef2b77a5f64133dbd7bd5939d5f.tar.gz
llvm-45c971f7eef18ef2b77a5f64133dbd7bd5939d5f.tar.bz2
[lldb/Lua] Make lldb.debugger et al available to Lua
The Python script interpreter makes the current debugger, target, process, thread and frame available to interactive scripting sessions through convenience variables. This patch does the same for Lua. Differential revision: https://reviews.llvm.org/D71801
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h b/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h
index b34c7d0..550e1035 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h
+++ b/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h
@@ -43,8 +43,12 @@ public:
Lua &GetLua();
+ llvm::Error EnterSession(lldb::user_id_t debugger_id);
+ llvm::Error LeaveSession();
+
private:
std::unique_ptr<Lua> m_lua;
+ bool m_session_is_active = false;
};
} // namespace lldb_private