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 
11 #include "lldb/Core/SearchFilter.h"
12 
13 namespace lldb_private {
14 class ModuleList;
15 }
16 
17 using namespace lldb_private;
18 
19 // AddressResolver:
21 
23 
25  ModuleList &modules) {
26  filter.SearchInModuleList(*this, modules);
27 }
28 
30  filter.Search(*this);
31 }
32 
33 std::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 }
lldb_private::AddressResolver::GetAddressRanges
std::vector< AddressRange > & GetAddressRanges()
Definition: AddressResolver.cpp:33
lldb_private::AddressResolver::m_address_ranges
std::vector< AddressRange > m_address_ranges
Definition: AddressResolver.h:55
lldb_private::AddressResolver::ResolveAddress
virtual void ResolveAddress(SearchFilter &filter)
Definition: AddressResolver.cpp:29
lldb_private::SearchFilter::SearchInModuleList
virtual void SearchInModuleList(Searcher &searcher, ModuleList &modules)
Call this method to do the search using the Searcher in the module list modules.
Definition: SearchFilter.cpp:219
lldb_private::SearchFilter::Search
virtual void Search(Searcher &searcher)
Call this method to do the search using the Searcher.
Definition: SearchFilter.cpp:204
AddressResolver.h
lldb_private::AddressResolver::~AddressResolver
~AddressResolver() override
lldb_private::ModuleList
Definition: ModuleList.h:72
lldb_private::SearchFilter
General Outline: Provides the callback and search depth for the SearchFilter search.
Definition: SearchFilter.h:83
SearchFilter.h
lldb_private::AddressResolver::AddressResolver
AddressResolver()
lldb_private::AddressResolver::GetAddressRangeAtIndex
AddressRange & GetAddressRangeAtIndex(size_t idx)
Definition: AddressResolver.cpp:41
lldb_private::AddressResolver::GetNumberOfAddresses
size_t GetNumberOfAddresses()
Definition: AddressResolver.cpp:37
lldb_private::AddressRange
Definition: AddressRange.h:25
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::AddressResolver::ResolveAddressInModules
virtual void ResolveAddressInModules(SearchFilter &filter, ModuleList &modules)
Definition: AddressResolver.cpp:24