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:
Aurindam Jana
2012-05-29 12:01:29 +02:00
committed by hjk
parent 5deddc454c
commit 07a9004f62

View File

@@ -63,11 +63,8 @@ void AbstractPlainGdbAdapter::setupInferior()
QString args = startParameters().processArgs;
m_engine->postCommand("-exec-arguments " + toLocalEncoding(args));
}
if (m_engine->gdbVersion() > 70000)
m_engine->postCommand("-file-exec-and-symbols \"" + execFilePath() + '"',
CB(handleFileExecAndSymbols));
else
m_engine->postCommand("file " + execFilePath(), CB(handleFileExecAndSymbols));
m_engine->postCommand("-file-exec-and-symbols \"" + execFilePath() + '"',
CB(handleFileExecAndSymbols));
}
void AbstractPlainGdbAdapter::handleFileExecAndSymbols(const GdbResponse &response)