From b680ee4628954c11ebe8e46ff6137c50890a430a Mon Sep 17 00:00:00 2001 From: Lieven Hey Date: Fri, 28 Jul 2023 10:43:06 +0200 Subject: [PATCH] test --- src/models/sourcecodemodel.cpp | 2 ++ tests/modeltests/tst_models.cpp | 2 ++ 2 files changed, 4 insertions(+) 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);