Commit 1703c8c1 authored by con's avatar con
Browse files

Gdb engine couldn't start executable with space in it.

Reviewed-by: hjk
parent c22e4c76
......@@ -148,8 +148,7 @@ static QByteArray parsePlainConsoleStream(const GdbResultRecord &record)
void PlainGdbAdapter::attach()
{
QFileInfo fi(m_engine->startParameters().executable);
QString fileName = fi.absoluteFilePath();
m_engine->postCommand(_("-file-exec-and-symbols ") + fileName,
m_engine->postCommand(_("-file-exec-and-symbols \"%1\"").arg(fi.absoluteFilePath()),
&GdbEngine::handleFileExecAndSymbols, "handleFileExecAndSymbols");
}
......
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