本文整理汇总了C++中LLDBEvent::GetVariables方法的典型用法代码示例。如果您正苦于以下问题:C++ LLDBEvent::GetVariables方法的具体用法?C++ LLDBEvent::GetVariables怎么用?C++ LLDBEvent::GetVariables使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLDBEvent
的用法示例。
在下文中一共展示了LLDBEvent::GetVariables方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnLLDBVariableExpanded
void LLDBTooltip::OnLLDBVariableExpanded(LLDBEvent& event)
{
int variableId = event.GetVariableId();
wxUnusedVar(variableId);
std::map<int, wxTreeItemId>::iterator iter = m_itemsPendingExpansion.find(event.GetVariableId());
if(iter == m_itemsPendingExpansion.end()) {
// does not belong to us
event.Skip();
return;
}
wxTreeItemId parentItem = iter->second;
// add the variables to the tree
for(size_t i = 0; i < event.GetVariables().size(); ++i) {
DoAddVariable(parentItem, event.GetVariables().at(i));
}
// Expand the parent item
if(m_treeCtrl->HasChildren(parentItem)) {
m_treeCtrl->Expand(parentItem);
}
// remove it
m_itemsPendingExpansion.erase(iter);
}
示例2: OnLLDBExpressionEvaluated
void LLDBPlugin::OnLLDBExpressionEvaluated(LLDBEvent& event)
{
CHECK_IS_LLDB_SESSION();
// hide any tooltip
if(!event.GetVariables().empty() && m_mgr->GetActiveEditor()) {
if(!m_tooltip) { m_tooltip = new LLDBTooltip(this); }
m_tooltip->Show(event.GetExpression(), event.GetVariables().at(0));
}
}
示例3: OnLLDBLocalsUpdated
void LLDBLocalsView::OnLLDBLocalsUpdated(LLDBEvent& event)
{
// FIXME: optimize this to only retrieve the top levle variables
// the children should be obtained in the 'OnItemExpading' event handler
event.Skip();
wxWindowUpdateLocker locker(m_treeList);
Enable(true);
m_treeList->DeleteChildren(m_treeList->GetRootItem());
CL_DEBUG("Updating locals view");
DoAddVariableToView(event.GetVariables(), m_treeList->GetRootItem());
}
示例4: OnLLDBVariableExpanded
void LLDBLocalsView::OnLLDBVariableExpanded(LLDBEvent& event)
{
int variableId = event.GetVariableId();
// try to locate this item in our map
LLDBLocalsView::IntItemMap_t::iterator iter = m_pendingExpandItems.find(variableId);
if(iter == m_pendingExpandItems.end()) {
// does not belong to us - skip it
event.Skip();
return;
}
// add the variables
DoAddVariableToView(event.GetVariables(), iter->second);
m_pendingExpandItems.erase(iter);
}