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