本文整理汇总了C++中LLDBCommand::SetCommandType方法的典型用法代码示例。如果您正苦于以下问题:C++ LLDBCommand::SetCommandType方法的具体用法?C++ LLDBCommand::SetCommandType怎么用?C++ LLDBCommand::SetCommandType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLDBCommand
的用法示例。
在下文中一共展示了LLDBCommand::SetCommandType方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DeleteAllBreakpoints
void LLDBConnector::DeleteAllBreakpoints()
{
if(!IsRunning()) {
m_pendingDeletionBreakpoints.clear();
m_breakpoints.clear();
LLDBEvent event(wxEVT_LLDB_BREAKPOINTS_UPDATED);
event.SetBreakpoints(GetAllBreakpoints());
ProcessEvent(event);
return;
}
// mark all breakpoints for deletion
CL_DEBUGS(wxString() << "codelite: DeleteAllBreakpoints called");
m_pendingDeletionBreakpoints.swap(m_breakpoints);
if(!IsCanInteract()) {
Interrupt(kInterruptReasonDeleteAllBreakpoints);
} else {
LLDBCommand command;
command.SetCommandType(kCommandDeleteAllBreakpoints);
SendCommand(command);
m_pendingDeletionBreakpoints.clear();
}
}
示例2: SendInterperterCommand
void LLDBConnector::SendInterperterCommand(const wxString& command)
{
LLDBCommand lldbCommand;
lldbCommand.SetCommandType(kCommandInterperterCommand);
lldbCommand.SetExpression(command);
SendCommand(lldbCommand);
}
示例3: AddWatch
void LLDBConnector::AddWatch(const wxString& watch)
{
LLDBCommand command;
command.SetCommandType(kCommandAddWatch);
command.SetExpression(watch);
SendCommand(command);
}
示例4: Interrupt
void LLDBConnector::Interrupt(eInterruptReason reason)
{
LLDBCommand command;
command.SetCommandType(kCommandInterrupt);
command.SetInterruptReason(reason);
SendCommand(command);
}
示例5: DeleteWatch
void LLDBConnector::DeleteWatch(int lldbId)
{
LLDBCommand command;
command.SetCommandType(kCommandDeleteWatch);
command.SetLldbId(lldbId);
SendCommand(command);
}
示例6: RequestLocals
void LLDBConnector::RequestLocals()
{
if(IsCanInteract()) {
LLDBCommand command;
command.SetCommandType(kCommandGetLocals);
SendCommand(command);
}
}
示例7: NextInstruction
void LLDBConnector::NextInstruction()
{
if(IsCanInteract()) {
LLDBCommand command;
command.SetCommandType(kCommandNextInstruction);
SendCommand(command);
}
}
示例8: ShowCurrentFileLine
void LLDBConnector::ShowCurrentFileLine()
{
if(IsCanInteract()) {
LLDBCommand command;
command.SetCommandType(kCommandCurrentFileLine);
SendCommand(command);
}
}
示例9: OnStart
void MainDialog::OnStart(wxCommandEvent& event)
{
LLDBCommand command;
command.SetCommandType( kCommandStart );
command.SetExecutable( m_filePickerExe->GetPath() );
m_connector.SendCommand( command );
LogCommand( command );
}
示例10: RequestVariableChildren
void LLDBConnector::RequestVariableChildren(int lldbId)
{
if(IsCanInteract()) {
LLDBCommand command;
command.SetCommandType(kCommandExpandVariable);
command.SetLldbId(lldbId);
SendCommand(command);
}
}
示例11: SelectThread
void LLDBConnector::SelectThread(int threadID)
{
if(IsCanInteract()) {
LLDBCommand command;
command.SetCommandType(kCommandSelectThread);
command.SetThreadId(threadID);
SendCommand(command);
}
}
示例12: EvaluateExpression
void LLDBConnector::EvaluateExpression(const wxString& expression)
{
if(IsCanInteract()) {
LLDBCommand command;
command.SetCommandType(kCommandEvalExpression);
command.SetExpression(expression);
SendCommand(command);
}
}
示例13: SelectFrame
void LLDBConnector::SelectFrame(int frameID)
{
if(IsCanInteract()) {
LLDBCommand command;
command.SetCommandType(kCommandSelectFrame);
command.SetFrameId(frameID);
SendCommand(command);
}
}
示例14: Stop
void LLDBConnector::Stop()
{
if(IsAttachedToProcess()) {
Detach();
} else {
LLDBCommand command;
command.SetCommandType(kCommandStop);
SendCommand(command);
}
}
示例15: OnLLDBStarted
void MainDialog::OnLLDBStarted(LLDBEvent& e)
{
e.Skip();
m_textCtrlLog->AppendText(wxString() << "LLDB Started successfully\n");
LLDBCommand command;
command.SetCommandType( kCommandRun );
command.SetCommandArguments( "" );
m_connector.SendCommand( command );
m_textCtrlLog->AppendText("Running...\n");
}