Debugger: Fix switching between assembler and source.

Do not drop stack index in resetLocation (which is called
when switching). Do not switch to source unless we have
the file.

Reviewed-by: hjk
This commit is contained in:
Friedemann Kleint
2010-11-22 12:21:56 +01:00
parent fedd048fd0
commit 9be36be951
2 changed files with 9 additions and 6 deletions

View File

@@ -511,7 +511,6 @@ void DebuggerEngine::breakByFunction(const QString &functionName)
void DebuggerEngine::resetLocation()
{
d->m_disassemblerViewAgent.resetLocation();
d->m_stackHandler.setCurrentIndex(-1);
debuggerCore()->removeLocationMark();
}