diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-05-12 17:19:42 +0200 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2011-05-16 12:32:51 +0200 |
commit | 8da2c548f3b463fed3f1a80fb5b624c9acf6c1cf (patch) | |
tree | 4ed894d37e37f868090390cebc2fde4961fbf9de | |
parent | 5b03087f50a7c1139acc9d3b2074e11ce0954672 (diff) |
Debugger[CDB]: Fix console on Windows XP.
Attach to suspended application and doing resume manually
does not work. Use special options for console.
Reviewed-by: hjk
Tested-by: Alessandro Portale <alessandro.portale@nokia.com>
-rw-r--r-- | src/plugins/debugger/cdb/cdbengine.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp index 083e004ee9..1ab00a7f0f 100644 --- a/src/plugins/debugger/cdb/cdbengine.cpp +++ b/src/plugins/debugger/cdb/cdbengine.cpp @@ -742,8 +742,12 @@ bool CdbEngine::launchCDB(const DebuggerStartParameters &sp, QString *errorMessa case AttachExternal: case AttachCrashedExternal: arguments << QLatin1String("-p") << QString::number(sp.attachPID); - if (sp.startMode == AttachCrashedExternal) + if (sp.startMode == AttachCrashedExternal) { arguments << QLatin1String("-e") << sp.crashParameter << QLatin1String("-g"); + } else { + if (isConsole(startParameters())) + arguments << QLatin1String("-pr") << QLatin1String("-pb"); + } break; default: *errorMessage = QString::fromLatin1("Internal error: Unsupported start mode %1.").arg(sp.startMode); @@ -812,9 +816,6 @@ void CdbEngine::runEngine() { if (debug) qDebug("runEngine"); - // Resume the threads frozen by the console stub. - if (isConsole(startParameters())) - postCommand("~* m", 0); foreach (const QString &breakEvent, m_options->breakEvents) postCommand(QByteArray("sxe ") + breakEvent.toAscii(), 0); postCommand("g", 0); |