Fix ambiguous command line option for newer LLDB

This commit is contained in:
snare 2016-09-05 12:21:18 +10:00 committed by threatbutt
parent 0762851bcb
commit c05f5b71d5
1 changed files with 4 additions and 4 deletions

View File

@ -67,13 +67,13 @@ fi
if [ -n "${LLDB}" ]; then if [ -n "${LLDB}" ]; then
# Find the Python version used by LLDB # Find the Python version used by LLDB
PYVER=$(lldb -Qxbo 'script import platform; print(".".join(platform.python_version_tuple()[:2]))'|tail -1) PYVER=$(lldb -Qxb --one-line 'script import platform; print(".".join(platform.python_version_tuple()[:2]))'|tail -1)
PYTHON=$(lldb -Qxbo 'script import sys; print(sys.executable)'|tail -1) PYTHON=$(lldb -Qxb --one-line 'script import sys; print(sys.executable)'|tail -1)
PYTHON="${PYTHON}${PYVER}" PYTHON="${PYTHON}${PYVER}"
if [ -z $USER_MODE ]; then if [ -z $USER_MODE ]; then
LLDB_SITE_PACKAGES=$(lldb -Qxbo 'script import site; print(site.getsitepackages()[0])'|tail -1) LLDB_SITE_PACKAGES=$(lldb -Qxb --one-line 'script import site; print(site.getsitepackages()[0])'|tail -1)
else else
LLDB_SITE_PACKAGES=$(lldb -Qxbo 'script import site; print(site.getusersitepackages())'|tail -1) LLDB_SITE_PACKAGES=$(lldb -Qxb --one-line 'script import site; print(site.getusersitepackages())'|tail -1)
fi fi
install_apt install_apt