Debugger: Dont show invalid hit count

The CDB Engine cannot report the hit count.
Instead of showing "0", we don't show the hit count
at all.

Task-number: QTCREATORBUG-20069
Change-Id: Ie8b5478ba85c7255b13070cb488599a2b2ca4537
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-01-31 15:50:31 +01:00
parent 6d22196dd1
commit 20904b2411
3 changed files with 10 additions and 6 deletions

View File

@@ -207,7 +207,8 @@ QString BreakpointParameters::toString() const
ts << " [pending]";
if (!functionName.isEmpty())
ts << " Function: " << functionName;
ts << " Hit: " << hitCount << " times";
if (hitCount)
ts << " Hit: " << *hitCount << " times";
ts << ' ';
return result;