summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2018-08-17 17:39:32 +0000
committerJim Ingham <jingham@apple.com>2018-08-17 17:39:32 +0000
commit72024ad7afb4f3361a21307025d6d1719d6462c0 (patch)
treeab2c519081ebd33a6957fda2364dc81ed70a8a12
parent0dfe830318c8e59aeedd1b790b1ea25e7f1cfca3 (diff)
downloadbcm5719-llvm-72024ad7afb4f3361a21307025d6d1719d6462c0.tar.gz
bcm5719-llvm-72024ad7afb4f3361a21307025d6d1719d6462c0.zip
Show how to use "lldb -P" to find the lldb.py.
We had hard-coded the path in the docs but that got out of date - showing again that -P is the better way to do this. <rdar://problem/43394652> llvm-svn: 340053
-rwxr-xr-xlldb/www/python-reference.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/lldb/www/python-reference.html b/lldb/www/python-reference.html
index d6aa80f87a1..0a50a4aa0c6 100755
--- a/lldb/www/python-reference.html
+++ b/lldb/www/python-reference.html
@@ -654,13 +654,14 @@ $2 = 0x000000010010aba0 Let's Be Friendsfoobar</tt></pre></code>
<b>LLDB.framework</b> to create your own stand-alone python programs, you will
need to tell python where to look in order to find this module. This
is done by setting the <b>PYTHONPATH</b> environment variable, adding
- a path to the directory that contains the <b>lldb.py</b> python module. On
- Mac OS X, this is contained inside the LLDB.framework, so you would do:
+ a path to the directory that contains the <b>lldb.py</b> python module. The
+ lldb driver program has an option to report the path to the lldb module.
+ You can use that to point to correct lldb.py:
<p>For csh and tcsh:</p>
- <p><code>% <b>setenv PYTHONPATH /Developer/Library/PrivateFrameworks/LLDB.framework/Resources/Python</b></code></p>
+ <p><code>% <b>setenv PYTHONPATH `lldb -P`</b></p>
<p>For sh and bash:
- <p><code>% <b>export PYTHONPATH=/Developer/Library/PrivateFrameworks/LLDB.framework/Resources/Python</b></code></p>
+ <p><code>% <b>export PYTHONPATH=`lldb -P`</b></p>
<p> Alternately, you can append the LLDB Python directory to the <b>sys.path</b> list directly in
your Python code before importing the lldb module.</p>
OpenPOWER on IntegriCloud