From c35ad8c62a10fba462bee253de541f3877212dd4 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 27 May 2014 17:51:55 +0200 Subject: [PATCH] Debugger: Fix regression in core file creation. Introduced with 6dd3be2fee4. The gcore commands accepts files with spaces, but only unquoted. Change-Id: Iac9a43f4db24252faf4fe4aac5ab0ced3dcb3c3f Reviewed-by: Orgad Shaneh --- src/plugins/debugger/gdb/gdbengine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"),