Skip to content
Snippets Groups Projects
Commit e0e59232 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Debugger: Do not pass -client for Windows-post-mortem debugging.


Reviewed-by: default avatarRobert Loehning <robert.loehning@nokia.com>
Task-number: QTCREATORBUG-2827
parent b2369973
No related branches found
No related tags found
No related merge requests found
...@@ -269,6 +269,7 @@ bool startCreatorAsDebugger(bool asClient, QString *errorMessage) ...@@ -269,6 +269,7 @@ bool startCreatorAsDebugger(bool asClient, QString *errorMessage)
const QString dir = QApplication::applicationDirPath(); const QString dir = QApplication::applicationDirPath();
const QString binary = dir + QLatin1Char('/') + QLatin1String(creatorBinaryC); const QString binary = dir + QLatin1Char('/') + QLatin1String(creatorBinaryC);
QStringList args; QStringList args;
// Send to running Creator: Unstable with directly linked CDB engine.
if (asClient) if (asClient)
args << QLatin1String("-client"); args << QLatin1String("-client");
args << QLatin1String("-debug") << QString::number(argProcessId) args << QLatin1String("-debug") << QString::number(argProcessId)
...@@ -356,8 +357,10 @@ bool chooseDebugger(QString *errorMessage) ...@@ -356,8 +357,10 @@ bool chooseDebugger(QString *errorMessage)
if (msgBox.clickedButton() == creatorButton) { if (msgBox.clickedButton() == creatorButton) {
// Just in case, default to standard. Do not run as client in the unlikely case // Just in case, default to standard. Do not run as client in the unlikely case
// Creator crashed // Creator crashed
// TODO: pass asClient=true for new CDB engine.
const bool canRunAsClient = !processName.contains(QLatin1String(creatorBinaryC), Qt::CaseInsensitive); const bool canRunAsClient = !processName.contains(QLatin1String(creatorBinaryC), Qt::CaseInsensitive);
if (startCreatorAsDebugger(canRunAsClient, errorMessage)) Q_UNUSED(canRunAsClient)
if (startCreatorAsDebugger(false, errorMessage))
return true; return true;
return startDefaultDebugger(errorMessage); return startDefaultDebugger(errorMessage);
} }
...@@ -478,7 +481,8 @@ int main(int argc, char *argv[]) ...@@ -478,7 +481,8 @@ int main(int argc, char *argv[])
usage(QCoreApplication::applicationFilePath(), errorMessage); usage(QCoreApplication::applicationFilePath(), errorMessage);
break; break;
case ForceCreatorMode: case ForceCreatorMode:
ex = startCreatorAsDebugger(true, &errorMessage) ? 0 : -1; // TODO: pass asClient=true for new CDB engine.
ex = startCreatorAsDebugger(false, &errorMessage) ? 0 : -1;
break; break;
case ForceDefaultMode: case ForceDefaultMode:
ex = startDefaultDebugger(&errorMessage) ? 0 : -1; ex = startDefaultDebugger(&errorMessage) ? 0 : -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment