本文整理汇总了C++中DWARFDie::addressRangeContainsAddress方法的典型用法代码示例。如果您正苦于以下问题:C++ DWARFDie::addressRangeContainsAddress方法的具体用法?C++ DWARFDie::addressRangeContainsAddress怎么用?C++ DWARFDie::addressRangeContainsAddress使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DWARFDie
的用法示例。
在下文中一共展示了DWARFDie::addressRangeContainsAddress方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getInlinedChainForAddress
void DWARFDie::getInlinedChainForAddress(
const uint64_t Address, SmallVectorImpl<DWARFDie> &InlinedChain) const {
if (isNULL())
return;
DWARFDie DIE(*this);
while (DIE) {
// Append current DIE to inlined chain only if it has correct tag
// (e.g. it is not a lexical block).
if (DIE.isSubroutineDIE())
InlinedChain.push_back(DIE);
// Try to get child which also contains provided address.
DWARFDie Child = DIE.getFirstChild();
while (Child) {
if (Child.addressRangeContainsAddress(Address)) {
// Assume there is only one such child.
break;
}
Child = Child.getSibling();
}
DIE = Child;
}
// Reverse the obtained chain to make the root of inlined chain last.
std::reverse(InlinedChain.begin(), InlinedChain.end());
}