1 //===-- AddressResolverFileLine.h -------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef liblldb_AddressResolverFileLine_h_
10 #define liblldb_AddressResolverFileLine_h_
12 #include "lldb/Core/AddressResolver.h"
13 #include "lldb/Core/SearchFilter.h"
14 #include "lldb/Utility/FileSpec.h"
15 #include "lldb/lldb-defines.h"
19 namespace lldb_private {
24 /// \class AddressResolverFileLine AddressResolverFileLine.h
25 /// "lldb/Core/AddressResolverFileLine.h" This class finds address for source
26 /// file and line. Optionally, it will look for inlined instances of the file
27 /// and line specification.
29 class AddressResolverFileLine : public AddressResolver {
31 AddressResolverFileLine(const FileSpec &resolver, uint32_t line_no,
34 ~AddressResolverFileLine() override;
36 Searcher::CallbackReturn SearchCallback(SearchFilter &filter,
37 SymbolContext &context,
38 Address *addr) override;
40 lldb::SearchDepth GetDepth() override;
42 void GetDescription(Stream *s) override;
45 FileSpec m_file_spec; // This is the file spec we are looking for.
46 uint32_t m_line_number; // This is the line number that we are looking for.
47 bool m_inlines; // This determines whether the resolver looks for inlined
51 DISALLOW_COPY_AND_ASSIGN(AddressResolverFileLine);
54 } // namespace lldb_private
56 #endif // liblldb_AddressResolverFileLine_h_