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_
14 #include "lldb/Core/AddressResolver.h"
16 namespace lldb_private {
18 //----------------------------------------------------------------------
19 /// @class AddressResolverFileLine AddressResolverFileLine.h "lldb/Core/AddressResolverFileLine.h"
20 /// @brief This class finds address for source file and line. Optionally, it will look for inlined
21 /// instances of the file and line specification.
22 //----------------------------------------------------------------------
24 class AddressResolverFileLine :
25 public AddressResolver
29 AddressResolverFileLine (const FileSpec &resolver,
33 ~AddressResolverFileLine () override;
35 Searcher::CallbackReturn
36 SearchCallback (SearchFilter &filter,
37 SymbolContext &context,
39 bool containing) override;
45 GetDescription (Stream *s) override;
48 FileSpec m_file_spec; // This is the file spec we are looking for.
49 uint32_t m_line_number; // This is the line number that we are looking for.
50 bool m_inlines; // This determines whether the resolver looks for inlined functions or not.
53 DISALLOW_COPY_AND_ASSIGN(AddressResolverFileLine);
56 } // namespace lldb_private
58 #endif // liblldb_AddressResolverFileLine_h_