forked from qt-creator/qt-creator
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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user