本文整理汇总了C++中LLDBEvent::GetSessionType方法的典型用法代码示例。如果您正苦于以下问题:C++ LLDBEvent::GetSessionType方法的具体用法?C++ LLDBEvent::GetSessionType怎么用?C++ LLDBEvent::GetSessionType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLDBEvent
的用法示例。
在下文中一共展示了LLDBEvent::GetSessionType方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnLLDBStarted
void LLDBPlugin::OnLLDBStarted(LLDBEvent& event)
{
event.Skip();
InitializeUI();
LoadLLDBPerspective();
// If this is a normal debug session, a start notification
// should follow a 'Run' command
switch(event.GetSessionType()) {
case kDebugSessionTypeCore:
CL_DEBUG("CODELITE>> LLDB started (core file)");
break;
case kDebugSessionTypeAttach: {
LLDBSettings settings;
m_raisOnBpHit = settings.Load().IsRaiseWhenBreakpointHit();
CL_DEBUG("CODELITE>> LLDB started (attached)");
m_connector.SetAttachedToProcess(event.GetSessionType() == kDebugSessionTypeAttach);
// m_connector.Continue();
break;
}
case kDebugSessionTypeNormal: {
LLDBSettings settings;
m_raisOnBpHit = settings.Load().IsRaiseWhenBreakpointHit();
CL_DEBUG("CODELITE>> LLDB started (normal)");
m_connector.Run();
break;
}
}
wxCommandEvent e2(wxEVT_DEBUG_STARTED);
EventNotifier::Get()->AddPendingEvent(e2);
}
示例2: OnLLDBStarted
void LLDBPlugin::OnLLDBStarted(LLDBEvent& event)
{
event.Skip();
const auto settings = LLDBSettings().Load();
m_showThreadNames = settings.HasFlag(kLLDBOptionShowThreadNames);
m_showFileNamesOnly = settings.HasFlag(kLLDBOptionShowFileNamesOnly);
InitializeUI();
LoadLLDBPerspective();
// If this is a normal debug session, a start notification
// should follow a 'Run' command
switch(event.GetSessionType()) {
case kDebugSessionTypeCore:
CL_DEBUG("CODELITE>> LLDB started (core file)");
break;
case kDebugSessionTypeAttach: {
m_raisOnBpHit = settings.IsRaiseWhenBreakpointHit();
CL_DEBUG("CODELITE>> LLDB started (attached)");
m_connector.SetAttachedToProcess(event.GetSessionType() == kDebugSessionTypeAttach);
// m_connector.Continue();
break;
}
case kDebugSessionTypeNormal: {
m_raisOnBpHit = settings.IsRaiseWhenBreakpointHit();
CL_DEBUG("CODELITE>> LLDB started (normal)");
m_connector.Run();
break;
}
}
// notify plugins that the debugger just started
{
clDebugEvent eventStarted(wxEVT_DEBUG_STARTED);
eventStarted.SetClientData(NULL);
EventNotifier::Get()->ProcessEvent(eventStarted);
}
}