1 //===-- FileLineResolver.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_FileLineResolver_h_
11 #define liblldb_FileLineResolver_h_
14 #include "lldb/Core/AddressResolver.h"
15 #include "lldb/Symbol/SymbolContext.h"
17 namespace lldb_private {
19 //----------------------------------------------------------------------
20 /// @class FileLineResolver FileLineResolver.h "lldb/Core/FileLineResolver.h"
21 /// @brief This class finds address for source file and line. Optionally, it will look for inlined
22 /// instances of the file and line specification.
23 //----------------------------------------------------------------------
25 class FileLineResolver :
31 m_line_number(UINT32_MAX), // Set this to zero for all lines in a file
37 FileLineResolver (const FileSpec &resolver,
44 virtual Searcher::CallbackReturn
45 SearchCallback (SearchFilter &filter,
46 SymbolContext &context,
50 virtual Searcher::Depth
54 GetDescription (Stream *s);
56 const SymbolContextList &
66 Reset (const FileSpec &file_spec,
70 FileSpec m_file_spec; // This is the file spec we are looking for.
71 uint32_t m_line_number; // This is the line number that we are looking for.
72 SymbolContextList m_sc_list;
73 bool m_inlines; // This determines whether the resolver looks for inlined functions or not.
76 DISALLOW_COPY_AND_ASSIGN(FileLineResolver);
79 } // namespace lldb_private
81 #endif // liblldb_FileLineResolver_h_