[Lldb-commits] [PATCH] D61090: [SBHostOS} Remove getting the python script interpreter path

Jim Ingham via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 25 10:16:54 PDT 2019

jingham added a comment.

I'm a bit confused.  If we get to the world where we can support multiple script interpreters, I would expect to add a static method on ScriptInterpreter that enumerates the available interpreters.  I would not expect that to be on SBHostOS since this is not a feature of the Host OS but of how lldb was configured.  An lldb running on macOS with the Python2 plugin available behaves - w.r.t. macOS  - exactly the same as one built with a Python3 plugin available, etc.

So the "available languages" query for sure seems to me to belong as a static method on the ScriptInterpreter class.  But then once I've requested a particular script interpreter, asking it where it put the lldb module seems much more natural than going to the HostOS.  Under the covers, we will need to cooperate with the HostOS since that knows how lldb is packaged for a particular system.  But that doesn't seem like something we need to have users know.



More information about the lldb-commits mailing list