forked from qt-creator/qt-creator
Debugging: Fix debugging for gdb versions < 7
Revert changes in e11a3a7697
related to -file-exec-and-symbols command.
Change-Id: I9d637fe931a6be2eaeb3d18ddcdf66e0ba4211dd
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -63,11 +63,8 @@ void AbstractPlainGdbAdapter::setupInferior()
|
|||||||
QString args = startParameters().processArgs;
|
QString args = startParameters().processArgs;
|
||||||
m_engine->postCommand("-exec-arguments " + toLocalEncoding(args));
|
m_engine->postCommand("-exec-arguments " + toLocalEncoding(args));
|
||||||
}
|
}
|
||||||
if (m_engine->gdbVersion() > 70000)
|
|
||||||
m_engine->postCommand("-file-exec-and-symbols \"" + execFilePath() + '"',
|
m_engine->postCommand("-file-exec-and-symbols \"" + execFilePath() + '"',
|
||||||
CB(handleFileExecAndSymbols));
|
CB(handleFileExecAndSymbols));
|
||||||
else
|
|
||||||
m_engine->postCommand("file " + execFilePath(), CB(handleFileExecAndSymbols));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AbstractPlainGdbAdapter::handleFileExecAndSymbols(const GdbResponse &response)
|
void AbstractPlainGdbAdapter::handleFileExecAndSymbols(const GdbResponse &response)
|
||||||
|
Reference in New Issue
Block a user