Exemplo n.º 1
0
bool
VMRange::ContainsRange(const VMRange::collection& coll, const VMRange& range)
{
    RangeInRangeUnaryPredicate in_range_predicate(range);
    VMRange::const_iterator pos;
    VMRange::const_iterator end = coll.end();
    pos = std::find_if( coll.begin(), end, in_range_predicate );
    if (pos != end)
        return true;
    return false;
}
Exemplo n.º 2
0
uint32_t
VMRange::FindRangeIndexThatContainsValue (const VMRange::collection& coll, lldb::addr_t value)
{
    ValueInRangeUnaryPredicate in_range_predicate(value);
    VMRange::const_iterator begin = coll.begin();
    VMRange::const_iterator end = coll.end();
    VMRange::const_iterator pos = std::find_if (begin, end, in_range_predicate);
    if (pos != end)
        return std::distance (begin, pos);
    return UINT32_MAX;
}
Exemplo n.º 3
0
bool
VMRange::ContainsValue(const VMRange::collection& coll, lldb::addr_t value)
{
    ValueInRangeUnaryPredicate in_range_predicate(value);
    VMRange::const_iterator pos;
    VMRange::const_iterator end = coll.end();
    pos = std::find_if( coll.begin(), end, in_range_predicate );
    if (pos != end)
        return true;
    return false;
}
Exemplo n.º 4
0
bool VMRange::ContainsRange(const VMRange::collection &coll,
                            const VMRange &range) {
  return llvm::find_if(coll, [&](const VMRange &r) {
           return r.Contains(range);
         }) != coll.end();
}
Exemplo n.º 5
0
bool VMRange::ContainsValue(const VMRange::collection &coll,
                            lldb::addr_t value) {
  return llvm::find_if(coll, [&](const VMRange &r) {
           return r.Contains(value);
         }) != coll.end();
}
Exemplo n.º 6
0
bool VMRange::ContainsRange(const VMRange::collection &coll,
                            const VMRange &range) {
  RangeInRangeUnaryPredicate in_range_predicate(range);
  return llvm::find_if(coll, in_range_predicate) != coll.end();
}
Exemplo n.º 7
0
bool VMRange::ContainsValue(const VMRange::collection &coll,
                            lldb::addr_t value) {
  ValueInRangeUnaryPredicate in_range_predicate(value);
  return llvm::find_if(coll, in_range_predicate) != coll.end();
}