Commit 33cb0f36 authored by hjk's avatar hjk

Debugger: Parse LLDB version number in Debugger settings page

This is purely informational, so no need to try overly hard.

Change-Id: I76f25d5c9d9b4e65c10bf66ad1d48e08ab65293c
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent 6ad3f397
......@@ -142,9 +142,18 @@ void DebuggerItem::reinitializeFromFile()
.arg(version / 10000).arg((version / 100) % 100).arg(version % 100);
return;
}
if (ba.contains("lldb") || ba.startsWith("LLDB")) {
if (ba.startsWith("lldb") || ba.startsWith("LLDB")) {
m_engineType = LldbEngineType;
m_abis = Abi::abisOfBinary(m_command);
// Version
if (ba.startsWith(("lldb version "))) { // Linux typically.
int pos1 = strlen("lldb version ");
int pos2 = ba.indexOf(' ', pos1);
m_version = QString::fromLatin1(ba.mid(pos1, pos2 - pos1));
} else if (ba.startsWith("lldb-") || ba.startsWith("LLDB-")) { // Mac typically.
m_version = QString::fromLatin1(ba.mid(5));
}
return;
}
if (ba.startsWith("Python")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment