debugger: make 'qtcreator -debug <corefile>' work

This commit is contained in:
hjk
2009-09-30 12:27:03 +02:00
parent 2dff35548a
commit 93902e5d0a
11 changed files with 82 additions and 41 deletions

View File

@@ -881,16 +881,21 @@ void GdbEngine::executeDebuggerCommand(const QString &command)
void GdbEngine::updateAll()
{
QTC_ASSERT(state() == InferiorUnrunnable || state() == InferiorStopped, /**/);
manager()->resetLocation();
tryLoadDebuggingHelpers();
manager()->stackHandler()->setCurrentIndex(0);
updateLocals();
reloadStack();
postCommand(_("-stack-list-frames"), WatchUpdate, CB(handleStackListFrames1), false);
manager()->stackHandler()->setCurrentIndex(0);
if (supportsThreads())
postCommand(_("-thread-list-ids"), WatchUpdate, CB(handleStackListThreads), 0);
manager()->reloadRegisters();
}
void GdbEngine::handleStackListFrames1(const GdbResponse &response)
{
handleStackListFrames(response);
manager()->gotoLocation(manager()->stackHandler()->currentFrame(), true);
}
void GdbEngine::handleQuerySources(const GdbResponse &response)
{
if (response.resultClass == GdbResultDone) {