Debugger: Use Utils::TreeModel as base for StackHandler

Change-Id: I3fcc1b3a149f15cf414a1560d91145b623e40c63
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2019-06-24 12:28:07 +02:00
parent 33fde35c19
commit 0d49c2cd2c
7 changed files with 87 additions and 80 deletions

View File

@@ -1045,13 +1045,13 @@ void CdbEngine::activateFrame(int index)
// TODO: assembler,etc
if (index < 0)
return;
const StackFrames &frames = stackHandler()->frames();
if (index >= frames.size()) {
if (stackHandler()->isSpecialFrame(index)) {
reloadFullStack(); // Clicked on "More...".
return;
}
const StackFrame frame = frames.at(index);
const StackFrame frame = stackHandler()->frameAt(index);
if (frame.language != CppLanguage) {
gotoLocation(frame);
return;