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

Reviewed-by: hjk
This commit is contained in:
con
2009-09-15 15:25:54 +02:00
parent c22e4c7628
commit 1703c8c18b

View File

@@ -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");
}