Commit 444c5ae1 authored by hjk's avatar hjk Committed by David Schulz

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: default avatarDavid Schulz <david.schulz@digia.com>
parent 2d3d53a0
...@@ -3167,6 +3167,10 @@ void GdbEngine::insertBreakpoint(BreakpointModelId id) ...@@ -3167,6 +3167,10 @@ void GdbEngine::insertBreakpoint(BreakpointModelId id)
if (handler->isOneShot(id)) if (handler->isOneShot(id))
cmd += "-t "; cmd += "-t ";
// FIXME: -d does not work on Mac gdb.
if (!handler->isEnabled(id) && !m_isMacGdb)
cmd += "-d ";
if (int ignoreCount = handler->ignoreCount(id)) if (int ignoreCount = handler->ignoreCount(id))
cmd += "-i " + QByteArray::number(ignoreCount) + ' '; cmd += "-i " + QByteArray::number(ignoreCount) + ' ';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment