Squish: Do not rely on default installation path

Change-Id: Iac5d45b3cbdb5ecb18d971b37189b27164abbaf3
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
This commit is contained in:
Christian Stenger
2014-02-04 09:26:29 +01:00
parent 93bdd52746
commit 650d8710cb

View File

@@ -217,8 +217,8 @@ def __getExpectedDebuggers__():
debuggers = ["gdb", "lldb"]
result.extend(filter(None, map(which, debuggers)))
if platform.system() == 'Darwin':
xcodeLLDB = "/Applications/Xcode.app/Contents/Developer/usr/bin/lldb"
if os.path.exists(xcodeLLDB):
xcodeLLDB = getOutputFromCmdline("xcrun --find lldb").strip("\n")
if xcodeLLDB and os.path.exists(xcodeLLDB) and xcodeLLDB not in result:
result.append(xcodeLLDB)
return result