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 LLDB_CORE_ADDRESSRESOLVERFILELINE_H
10 #define LLDB_CORE_ADDRESSRESOLVERFILELINE_H
12 #include "lldb/Core/AddressResolver.h"
13 #include "lldb/Core/SearchFilter.h"
14 #include "lldb/Core/SourceLocationSpec.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(SourceLocationSpec location_spec);
33 ~AddressResolverFileLine() override;
35 Searcher::CallbackReturn SearchCallback(SearchFilter &filter,
36 SymbolContext &context,
37 Address *addr) override;
39 lldb::SearchDepth GetDepth() override;
41 void GetDescription(Stream *s) override;
44 SourceLocationSpec m_src_location_spec;
47 AddressResolverFileLine(const AddressResolverFileLine &) = delete;
48 const AddressResolverFileLine &
49 operator=(const AddressResolverFileLine &) = delete;
52 } // namespace lldb_private
54 #endif // LLDB_CORE_ADDRESSRESOLVERFILELINE_H