debugger: always switch to frame 0 before trying to leave frame

This commit is contained in:
hjk
2010-06-01 14:35:51 +02:00
parent 322436069d
commit 661308c96e

View File

@@ -1851,6 +1851,7 @@ void GdbEngine::executeStepI()
void GdbEngine::executeStepOut()
{
QTC_ASSERT(state() == InferiorStopped, qDebug() << state());
postCommand("-stack-select-frame 0");
setTokenBarrier();
setState(InferiorRunningRequested);
showStatusMessage(tr("Finish function requested..."), 5000);