[Lldb-commits] [PATCH] D89295: [lldb] Add /Users/jonas to Python's sys.path

Raphael Isemann via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 13 05:52:52 PDT 2020


teemperor added a comment.

In D89295#2327367 <https://reviews.llvm.org/D89295#2327367>, @labath wrote:

> What exactly is the use case for this?

Xcode running a project-specific lldbinit file but users can't specify a `command script import relative/path/script.py` as the CWD for the lldb-rpc-server is `/`. This makes it impossible to check in custom LLDB Python scripts to an Xcode project that are loaded for all developers (as one can only specify the full path to the Python script).

I'm not sure if this patch is actually solving the problem. Now all devs need to have the project in the same path relative to their home directory.

I think we could solve this by having Xcode set the CWD to the project's source dir or we add the directories of .lldbinit files to Python's sys.path.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89295/new/

https://reviews.llvm.org/D89295



More information about the lldb-commits mailing list