1ac7ddfbfSEd Maste //===-- AddressResolver.cpp -------------------------------------*- C++ -*-===// 2ac7ddfbfSEd Maste // 3ac7ddfbfSEd Maste // The LLVM Compiler Infrastructure 4ac7ddfbfSEd Maste // 5ac7ddfbfSEd Maste // This file is distributed under the University of Illinois Open Source 6ac7ddfbfSEd Maste // License. See LICENSE.TXT for details. 7ac7ddfbfSEd Maste // 8ac7ddfbfSEd Maste //===----------------------------------------------------------------------===// 9ac7ddfbfSEd Maste 10ac7ddfbfSEd Maste #include "lldb/Core/AddressResolver.h" 11ac7ddfbfSEd Maste 12ac7ddfbfSEd Maste #include "lldb/Core/SearchFilter.h" 13*f678e45dSDimitry Andric 14*f678e45dSDimitry Andric namespace lldb_private { 15*f678e45dSDimitry Andric class ModuleList; 16*f678e45dSDimitry Andric } 17ac7ddfbfSEd Maste 18ac7ddfbfSEd Maste using namespace lldb_private; 19ac7ddfbfSEd Maste 20ac7ddfbfSEd Maste //---------------------------------------------------------------------- 21ac7ddfbfSEd Maste // AddressResolver: 22ac7ddfbfSEd Maste //---------------------------------------------------------------------- AddressResolver()23435933ddSDimitry AndricAddressResolver::AddressResolver() {} 24ac7ddfbfSEd Maste ~AddressResolver()25435933ddSDimitry AndricAddressResolver::~AddressResolver() {} 26ac7ddfbfSEd Maste ResolveAddressInModules(SearchFilter & filter,ModuleList & modules)27435933ddSDimitry Andricvoid AddressResolver::ResolveAddressInModules(SearchFilter &filter, 28435933ddSDimitry Andric ModuleList &modules) { 29ac7ddfbfSEd Maste filter.SearchInModuleList(*this, modules); 30ac7ddfbfSEd Maste } 31ac7ddfbfSEd Maste ResolveAddress(SearchFilter & filter)32435933ddSDimitry Andricvoid AddressResolver::ResolveAddress(SearchFilter &filter) { 33ac7ddfbfSEd Maste filter.Search(*this); 34ac7ddfbfSEd Maste } 35ac7ddfbfSEd Maste GetAddressRanges()36435933ddSDimitry Andricstd::vector<AddressRange> &AddressResolver::GetAddressRanges() { 37ac7ddfbfSEd Maste return m_address_ranges; 38ac7ddfbfSEd Maste } 39ac7ddfbfSEd Maste GetNumberOfAddresses()40435933ddSDimitry Andricsize_t AddressResolver::GetNumberOfAddresses() { 41ac7ddfbfSEd Maste return m_address_ranges.size(); 42ac7ddfbfSEd Maste } 43ac7ddfbfSEd Maste GetAddressRangeAtIndex(size_t idx)44435933ddSDimitry AndricAddressRange &AddressResolver::GetAddressRangeAtIndex(size_t idx) { 45ac7ddfbfSEd Maste return m_address_ranges[idx]; 46ac7ddfbfSEd Maste } 47