Commit c35ad8c6 authored by hjk's avatar hjk
Browse files

Debugger: Fix regression in core file creation.

Introduced with 6dd3be2f

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

Change-Id: Iac9a43f4db24252faf4fe4aac5ab0ced3dcb3c3f
Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
parent 89674e49
...@@ -3494,7 +3494,8 @@ void GdbEngine::createSnapshot() ...@@ -3494,7 +3494,8 @@ void GdbEngine::createSnapshot()
if (tf.open()) { if (tf.open()) {
fileName = tf.fileName(); fileName = tf.fileName();
tf.close(); 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); NeedsStop|ConsoleCommand, CB(handleMakeSnapshot), fileName);
} else { } else {
showMessageBox(QMessageBox::Critical, tr("Snapshot Creation Error"), showMessageBox(QMessageBox::Critical, tr("Snapshot Creation Error"),
......
Supports Markdown
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