Commit 128ed085 authored by hjk's avatar hjk

debugger: try to warn if we have a non-python enabled gdb on Windows.

parent ff7967cb
......@@ -3918,6 +3918,7 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &gdb, const QStr
#ifdef Q_OS_WIN
// Set python path. By convention, python is located below gdb executable.
const QFileInfo fi(location);
bool foundPython = false;
if (fi.isAbsolute()) {
const QString winPythonVersion = QLatin1String(winPythonVersionC);
const QDir dir = fi.absoluteDir();
......@@ -3937,8 +3938,13 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &gdb, const QStr
_("Python path: %1").arg(pythonPath));
m_gdbProc.setProcessEnvironment(environment);
}
foundPython = true;
}
}
if (!foundPython) {
debugMessage(_("UNSUPPORTED GDB %1 DOES NOT HAVE PYTHON.").arg(location));
showStatusMessage(_("Gdb at %1 does not have python.").arg(location));
}
#endif
connect(&m_gdbProc, SIGNAL(error(QProcess::ProcessError)),
......
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