Commit 97e9f113 authored by hjk's avatar hjk

Debugger: Allow LLDB-MI to be used as debugger

That's LLDB's "compatibility" mode faking a GDB 7.4 interface.

This is not directly needed given Qt Creator's native LLDB support
but might be a useful fallback in some setups.

Change-Id: Ia2c1c731de46b8c668bb0c822f1438fe203aa9c5
Reviewed-by: default avatarChristian Stenger <>
parent ac980232
......@@ -110,10 +110,15 @@ void DebuggerItem::createId()
void DebuggerItem::reinitializeFromFile()
QProcess proc;
// CDB only understands the single-dash -version, whereas GDB and LLDB are
// happy with both -version and --version. So use the "working" -version.
proc.start(m_command.toString(), QStringList() << QLatin1String("-version"));
// happy with both -version and --version. So use the "working" -version
// except for the experimental LLDB-MI which insists on --version.
const char *version = "-version";
if (m_command.toFileInfo().baseName().toLower().contains(QLatin1String("lldb-mi")))
version = "--version";
QProcess proc;
proc.start(m_command.toString(), QStringList({ QLatin1String(version) }));
if (!proc.waitForStarted() || !proc.waitForFinished()) {
m_engineType = NoEngineType;
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