void LLDBConnector::ApplyBreakpoints() { if(!m_breakpoints.empty()) { if(IsCanInteract()) { LLDBCommand command; command.SetCommandType(kCommandApplyBreakpoints); command.SetBreakpoints(GetUnappliedBreakpoints()); SendCommand(command); m_breakpoints.clear(); } else { Interrupt(kInterruptReasonApplyBreakpoints); } } }
void LLDBConnector::DeleteBreakpoints() { if ( IsCanInteract() ) { CL_DEBUGS(wxString () << "codelite: deleting breakpoints (total of " << m_pendingDeletionBreakpoints.size() << " breakpoints)"); LLDBCommand command; command.SetCommandType( kCommandDeleteBreakpoint ); command.SetBreakpoints( m_pendingDeletionBreakpoints ); SendCommand( command ); CL_DEBUGS(wxString () << "codelite: DeleteBreakpoints celar pending deletionbreakpoints queue"); m_pendingDeletionBreakpoints.clear(); } else { CL_DEBUG("codelite: interrupting codelite-lldb for kInterruptReasonDeleteBreakpoint"); Interrupt( kInterruptReasonDeleteBreakpoint ); } }