From 3a8c5464be2dd781988dca7ec30db679493ed9a8 Mon Sep 17 00:00:00 2001 From: Simon Kagstrom Date: Fri, 18 Aug 2023 20:38:59 +0200 Subject: [PATCH] Release v42 --- ChangeLog | 8 +++++++- src/reporter.cc | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c294d93f..f46049ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,14 @@ Kcov (42): + * Issue #317: Correct handling of large amounts of solib data (Steven Lu) + + * Issue #399: Suppor for the LoongArch architecture (Feiyang Chen) + + * Issue #397: Correct symlinks if the out-directory is a relative path (Hanaasagi) + * OSX: Replace the lldb-engine/parser with a macho-parser and a mach-engine for improved performance (~20x) (Simon Kagstrom) - -- Simon Kagstrom + -- Simon Kagstrom , Fri Aug 18 20:38:38 CEST 2023 Kcov (41): * Output the codecov file format (Nate Gallaher) diff --git a/src/reporter.cc b/src/reporter.cc index 84b9ad0d..1fb60180 100644 --- a/src/reporter.cc +++ b/src/reporter.cc @@ -49,7 +49,11 @@ class Reporter : public IReporter, ~Reporter() { - writeCoverageDatabase(); + if (IConfiguration::getInstance().keyAsInt("running-mode") != + IConfiguration::MODE_REPORT_ONLY) + { + writeCoverageDatabase(); + } for (FileMap_t::const_iterator it = m_files.begin(); it != m_files.end(); ++it) { @@ -415,6 +419,8 @@ class Reporter : public IReporter, { AddrToLineMap_t::iterator it = m_addrToLine.find(addr); +// kcov_debug(INFO_MSG, "%p (bef) REPORT hit at 0x%llx, %d lines\n", this, (unsigned long long)addr, m_addrToLine.size()); + if (it == m_addrToLine.end()) return;