diff --git a/src/models/sourcecodemodel.cpp b/src/models/sourcecodemodel.cpp index 15cb27c71..ce79e5ad1 100644 --- a/src/models/sourcecodemodel.cpp +++ b/src/models/sourcecodemodel.cpp @@ -85,6 +85,8 @@ void SourceCodeModel::setDisassembly(const DisassemblyOutput& disassemblyOutput, continue; } + qDebug() << line.fileLine; + // maxLineNumber and minLineNumber are used to show the source code so we only update them when we are in the // current file if (line.fileLine.file == disassemblyOutput.mainSourceFileName) { diff --git a/tests/modeltests/tst_models.cpp b/tests/modeltests/tst_models.cpp index feb2461b8..c648fabb9 100644 --- a/tests/modeltests/tst_models.cpp +++ b/tests/modeltests/tst_models.cpp @@ -429,6 +429,8 @@ private slots: const quint64 size = match.captured(2).toInt(&ok, 10); Q_ASSERT(ok); + qDebug() << output << address << size; + Data::Symbol symbol = {QStringLiteral("main"), address, size, QStringLiteral("cpp-recursion"), {}, binary}; SourceCodeModel model(nullptr);