forked from qt-creator/qt-creator
gdb: Executable from start params takes precedence over global setting.
This commit is contained in:
@@ -3939,10 +3939,10 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &gdb, const QStr
|
|||||||
gdbProc()->disconnect(); // From any previous runs
|
gdbProc()->disconnect(); // From any previous runs
|
||||||
|
|
||||||
m_gdb = QString::fromLocal8Bit(qgetenv("QTC_DEBUGGER_PATH"));
|
m_gdb = QString::fromLocal8Bit(qgetenv("QTC_DEBUGGER_PATH"));
|
||||||
if (m_gdb.isEmpty())
|
|
||||||
m_gdb = gdbBinaryForToolChain(startParameters().toolChainType);
|
|
||||||
if (m_gdb.isEmpty())
|
if (m_gdb.isEmpty())
|
||||||
m_gdb = gdb;
|
m_gdb = gdb;
|
||||||
|
if (m_gdb.isEmpty())
|
||||||
|
m_gdb = gdbBinaryForToolChain(startParameters().toolChainType);
|
||||||
if (m_gdb.isEmpty()) {
|
if (m_gdb.isEmpty()) {
|
||||||
handleAdapterStartFailed(
|
handleAdapterStartFailed(
|
||||||
msgNoBinaryForToolChain(startParameters().toolChainType),
|
msgNoBinaryForToolChain(startParameters().toolChainType),
|
||||||
|
Reference in New Issue
Block a user