Debugger: Fix regression in core file creation.

Introduced with 6dd3be2fee.
The gcore commands accepts files with spaces, but only unquoted.

Change-Id: Iac9a43f4db24252faf4fe4aac5ab0ced3dcb3c3f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
hjk
2014-05-27 17:51:55 +02:00
parent 89674e495a
commit c35ad8c62a

View File

@@ -3494,7 +3494,8 @@ void GdbEngine::createSnapshot()
if (tf.open()) {
fileName = tf.fileName();
tf.close();
postCommand("gcore \"" + fileName.toLocal8Bit() + '"',
// This must not be quoted, it doesn't work otherwise.
postCommand("gcore " + fileName.toLocal8Bit(),
NeedsStop|ConsoleCommand, CB(handleMakeSnapshot), fileName);
} else {
showMessageBox(QMessageBox::Critical, tr("Snapshot Creation Error"),