[Lldb-commits] [PATCH] D112973: [lldb] make it easier to find LLDB's python
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 10 08:47:01 PST 2021
JDevlieghere added a comment.
A few small nits but I'm very happy with the approach. Thanks Larry!
================
Comment at: lldb/include/lldb/API/SBHostOS.h:23
+ const char *GetScriptInterpreterInfo();
+
----------------
Is still still relevant?
================
Comment at: lldb/test/API/functionalities/paths/TestPaths.py:50
+ info_sd = self.dbg.GetScriptInterpreterInfo(self.dbg.GetScriptingLanguage("python"))
+ assert info_sd.IsValid()
+ stream = lldb.SBStream()
----------------
================
Comment at: lldb/test/API/functionalities/paths/TestPaths.py:51
+ assert info_sd.IsValid()
+ stream = lldb.SBStream()
+ assert info_sd.GetAsJSON(stream).Success()
----------------
Might be nice to check that all the keys you expect for Python are in the structured data, either here or in a separate test.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112973/new/
https://reviews.llvm.org/D112973
More information about the lldb-commits
mailing list