diff options
author | hjk <qthjk@ovi.com> | 2012-11-19 10:05:43 +0100 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-11-19 10:49:29 +0100 |
commit | 7b000a05695ffb88d3b67df4faba171d986fd870 (patch) | |
tree | 6013b16b81a7ac6cc0bfb213599851aa5ab075d3 /src/plugins/debugger | |
parent | b9ca111ab131b8b6db4a1169c436cebdf1f503cd (diff) | |
download | qt-creator-7b000a05695ffb88d3b67df4faba171d986fd870.tar.gz |
debugger: fix win64interrupt start when installed into path with spaces
Change-Id: I88796cf54fb4308b1f6e200a9233d8fb42bd9f01
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/plugins/debugger')
-rw-r--r-- | src/plugins/debugger/procinterrupt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/procinterrupt.cpp b/src/plugins/debugger/procinterrupt.cpp index 54a250437c..49c003972b 100644 --- a/src/plugins/debugger/procinterrupt.cpp +++ b/src/plugins/debugger/procinterrupt.cpp @@ -134,7 +134,7 @@ bool Debugger::Internal::interruptProcess(int pID, int engineType, QString *erro *errorMessage = QLatin1String("DebugBreakProcess failed: ") + Utils::winErrorMessage(GetLastError()); } else { const QString executable = QCoreApplication::applicationDirPath() + QLatin1String("/win64interrupt.exe"); - switch (QProcess::execute(executable + QLatin1Char(' ') + QString::number(pID))) { + switch (QProcess::execute(executable, QStringList(QString::number(pID)))) { case -2: *errorMessage = QString::fromLatin1("Cannot start %1. Check src\\tools\\win64interrupt\\win64interrupt.c for more information."). arg(QDir::toNativeSeparators(executable)); |