Skip to content
Snippets Groups Projects
Commit 07a9004f authored by Aurindam Jana's avatar Aurindam Jana Committed by hjk
Browse files

Debugging: Fix debugging for gdb versions < 7


Revert changes in e11a3a76
related to -file-exec-and-symbols command.

Change-Id: I9d637fe931a6be2eaeb3d18ddcdf66e0ba4211dd
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 5deddc45
No related branches found
No related tags found
No related merge requests found
...@@ -63,11 +63,8 @@ void AbstractPlainGdbAdapter::setupInferior() ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment