1 //===-- AddressResolverFileLine.h -------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_AddressResolverFileLine_h_
11 #define liblldb_AddressResolverFileLine_h_
13 #include "lldb/Core/AddressResolver.h"
14 #include "lldb/Core/SearchFilter.h" // for Searcher, Searcher::CallbackR...
15 #include "lldb/Utility/FileSpec.h" // for FileSpec
16 #include "lldb/lldb-defines.h" // for DISALLOW_COPY_AND_ASSIGN
18 #include <stdint.h> // for uint32_t
20 namespace lldb_private {
23 namespace lldb_private {
26 namespace lldb_private {
30 namespace lldb_private {
32 //----------------------------------------------------------------------
33 /// @class AddressResolverFileLine AddressResolverFileLine.h
34 /// "lldb/Core/AddressResolverFileLine.h" This class finds address for source
35 /// file and line. Optionally, it will look for inlined instances of the file
36 /// and line specification.
37 //----------------------------------------------------------------------
39 class AddressResolverFileLine : public AddressResolver {
41 AddressResolverFileLine(const FileSpec &resolver, uint32_t line_no,
44 ~AddressResolverFileLine() override;
46 Searcher::CallbackReturn SearchCallback(SearchFilter &filter,
47 SymbolContext &context, Address *addr,
48 bool containing) override;
50 Searcher::Depth GetDepth() override;
52 void GetDescription(Stream *s) override;
55 FileSpec m_file_spec; // This is the file spec we are looking for.
56 uint32_t m_line_number; // This is the line number that we are looking for.
57 bool m_inlines; // This determines whether the resolver looks for inlined
61 DISALLOW_COPY_AND_ASSIGN(AddressResolverFileLine);
64 } // namespace lldb_private
66 #endif // liblldb_AddressResolverFileLine_h_