forked from qt-creator/qt-creator
Get attaching to a crashed Windows process right (CDB).
Handle the 2nd parameter correctly as a event id to be used for a handshake. Introduce a special mode when attaching to crashed processes. Code cleanup, pass StartParameters along to startDebugger.
This commit is contained in:
@@ -219,12 +219,12 @@ void ScriptEngine::exitDebugger()
|
||||
qq->notifyInferiorExited();
|
||||
}
|
||||
|
||||
bool ScriptEngine::startDebugger()
|
||||
bool ScriptEngine::startDebugger(const QSharedPointer<DebuggerStartParameters> &sp)
|
||||
{
|
||||
m_stopped = false;
|
||||
m_stopOnNextLine = false;
|
||||
m_scriptEngine->abortEvaluation();
|
||||
const QSharedPointer<DebuggerStartParameters> sp = q->startParameters();
|
||||
|
||||
QFileInfo fi(sp->executable);
|
||||
m_scriptFileName = fi.absoluteFilePath();
|
||||
QFile scriptFile(m_scriptFileName);
|
||||
|
||||
Reference in New Issue
Block a user