Commit 8b0e0cd4 authored by hjk's avatar hjk
Browse files

debugger: no need to set breakpoints on core files

parent f4342efc
......@@ -2660,7 +2660,8 @@ bool GdbEngine::stateAcceptsBreakpointChanges() const
bool GdbEngine::acceptsBreakpoint(BreakpointId id) const
{
return DebuggerEngine::isCppBreakpoint(breakHandler()->breakpointData(id));
return DebuggerEngine::isCppBreakpoint(breakHandler()->breakpointData(id))
&& startParameters().startMode != AttachCore;
}
void GdbEngine::insertBreakpoint(BreakpointId id)
......@@ -4640,8 +4641,12 @@ void GdbEngine::handleNamespaceExtraction(const GdbResponse &response)
showMessage(_("FOUND NAMESPACED QT: " + ns));
setQtNamespace(ns + "::");
}
postCommand("-break-insert -f '" + qtNamespace() + "qFatal'",
CB(handleBreakOnQFatal));
if (startParameters().startMode == AttachCore)
notifyInferiorSetupOk(); // No breakpoints in core files.
else
postCommand("-break-insert -f '" + qtNamespace() + "qFatal'",
CB(handleBreakOnQFatal));
}
void GdbEngine::handleBreakOnQFatal(const GdbResponse &response)
......
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