void LldbEngine::insertBreakpoint(Breakpoint bp) { DebuggerCommand cmd("insertBreakpoint"); bp.addToCommand(&cmd); bp.notifyBreakpointInsertProceeding(); runCommand(cmd); }
void PdbEngine::insertBreakpoint(Breakpoint bp) { QTC_CHECK(bp.state() == BreakpointInsertRequested); bp.notifyBreakpointInsertProceeding(); QByteArray loc; if (bp.type() == BreakpointByFunction) loc = bp.functionName().toLatin1(); else loc = bp.fileName().toLocal8Bit() + ':' + QByteArray::number(bp.lineNumber()); postDirectCommand("break " + loc); }