LLDB mainline
AddressResolver.cpp
Go to the documentation of this file.
1//===-- AddressResolver.cpp -----------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
10
12
13namespace lldb_private {
14class ModuleList;
15}
16
17using namespace lldb_private;
18
19// AddressResolver:
21
23
25 ModuleList &modules) {
26 filter.SearchInModuleList(*this, modules);
27}
28
30 filter.Search(*this);
31}
32
33std::vector<AddressRange> &AddressResolver::GetAddressRanges() {
34 return m_address_ranges;
35}
36
38 return m_address_ranges.size();
39}
40
42 return m_address_ranges[idx];
43}
A section + offset based address range class.
Definition: AddressRange.h:25
std::vector< AddressRange > & GetAddressRanges()
virtual void ResolveAddressInModules(SearchFilter &filter, ModuleList &modules)
virtual void ResolveAddress(SearchFilter &filter)
std::vector< AddressRange > m_address_ranges
AddressRange & GetAddressRangeAtIndex(size_t idx)
A collection class for Module objects.
Definition: ModuleList.h:103
General Outline: Provides the callback and search depth for the SearchFilter search.
Definition: SearchFilter.h:83
virtual void SearchInModuleList(Searcher &searcher, ModuleList &modules)
Call this method to do the search using the Searcher in the module list modules.
virtual void Search(Searcher &searcher)
Call this method to do the search using the Searcher.
A class that represents a running process on the host machine.
Definition: SBAttachInfo.h:14