Debugger: Fix setting of some disabled breakpoints

As we disable of 'by-address' breakpoints by default after each
debugger run as they are unlikely to be correct on the next run,
starting with disabled breakpoints might happen. Disabling it
immediately is faster and less racy than relying on the 'change
needed' mechanism.

Change-Id: Icc5548d322f7ef4f099d218b4f04b4c40e3cb850
Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
hjk
2013-02-26 13:54:45 +01:00
committed by David Schulz
parent 2d3d53a011
commit 444c5ae11c

View File

@@ -3167,6 +3167,10 @@ void GdbEngine::insertBreakpoint(BreakpointModelId id)
if (handler->isOneShot(id))
cmd += "-t ";
// FIXME: -d does not work on Mac gdb.
if (!handler->isEnabled(id) && !m_isMacGdb)
cmd += "-d ";
if (int ignoreCount = handler->ignoreCount(id))
cmd += "-i " + QByteArray::number(ignoreCount) + ' ';