diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index cf822b7a330..2953b33397f 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -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"),