请教一下:
在lldb中,使用python时,会有:
import lldb
这个lldb怎么引入?
根据官方的文档:http://lldb.llvm.org/python-reference.html
USING THE LLDB.PY MODULE IN PYTHON
LLDB has all of its core code build into a shared library which gets used by the lldb command line application. On Mac OS X this shared library is a framework: LLDB.framework and on other unix variants the program is a shared library: lldb.so. LLDB also provides an lldb.py module that contains the bindings from LLDB into Python. To use the LLDB.framework 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 PYTHONPATH environment variable, adding a path to the directory that contains the lldb.py python module. On Mac OS X, this is contained inside the LLDB.framework, so you would do:
For sh and bash:
% export PYTHONPATH=/Developer/Library/PrivateFrameworks/LLDB.framework/Resources/Python
我的路径为:/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python
可是并没有lldb.py这个文件,这个文件在哪里??