Commit 6dd3be2f authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk

GDB: Support tempPath with whitespace

Change-Id: I6e3848e11b2550a508c3480e1a75494760376cad
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent c68c245f
......@@ -3360,8 +3360,8 @@ void GdbEngine::requestModuleSymbols(const QString &modulePath)
return;
QString fileName = tf.fileName();
tf.close();
postCommand("maint print msymbols " + fileName.toLocal8Bit()
+ ' ' + modulePath.toLocal8Bit(),
postCommand("maint print msymbols \"" + fileName.toLocal8Bit()
+ "\" " + modulePath.toLocal8Bit(),
NeedsStop, CB(handleShowModuleSymbols),
QVariant(modulePath + QLatin1Char('@') + fileName));
}
......@@ -3805,7 +3805,7 @@ void GdbEngine::createSnapshot()
if (tf.open()) {
fileName = tf.fileName();
tf.close();
postCommand("gcore " + fileName.toLocal8Bit(),
postCommand("gcore \"" + fileName.toLocal8Bit() + '"',
NeedsStop|ConsoleCommand, CB(handleMakeSnapshot), fileName);
} else {
showMessageBox(QMessageBox::Critical, tr("Snapshot Creation Error"),
......@@ -5156,7 +5156,7 @@ void GdbEngine::finishInferiorSetup()
symbols.open();
fileName = symbols.fileName();
}
postCommand("maint print msymbols " + fileName.toLocal8Bit(),
postCommand("maint print msymbols \"" + fileName.toLocal8Bit() + '"',
CB(handleNamespaceExtraction), fileName);
}
......
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