forked from qt-creator/qt-creator
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:
@@ -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) + ' ';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user