| 418 | } |
| 419 | |
| 420 | void FrameStackModel::stateChanged(IDebugSession::DebuggerState state) |
| 421 | { |
| 422 | Q_D(FrameStackModel); |
| 423 | |
| 424 | if (state == IDebugSession::PausedState) { |
| 425 | setCurrentFrame(-1); |
| 426 | d->m_updateCurrentFrameOnNextFetch = true; |
| 427 | } else if (state == IDebugSession::EndedState || state == IDebugSession::NotStartedState) { |
| 428 | setThreads(QVector<FrameStackModel::ThreadItem>()); |
| 429 | } |
| 430 | } |
| 431 | |
| 432 | // FIXME: it should be possible to fetch more frames for |
| 433 | // an arbitrary thread, without making it current. |