Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:44

0001 //===-- AddressResolverFileLine.h -------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLDB_CORE_ADDRESSRESOLVERFILELINE_H
0010 #define LLDB_CORE_ADDRESSRESOLVERFILELINE_H
0011 
0012 #include "lldb/Core/AddressResolver.h"
0013 #include "lldb/Core/SearchFilter.h"
0014 #include "lldb/Core/SourceLocationSpec.h"
0015 #include "lldb/lldb-defines.h"
0016 
0017 #include <cstdint>
0018 
0019 namespace lldb_private {
0020 class Address;
0021 class Stream;
0022 class SymbolContext;
0023 
0024 /// \class AddressResolverFileLine AddressResolverFileLine.h
0025 /// "lldb/Core/AddressResolverFileLine.h" This class finds address for source
0026 /// file and line.  Optionally, it will look for inlined instances of the file
0027 /// and line specification.
0028 
0029 class AddressResolverFileLine : public AddressResolver {
0030 public:
0031   AddressResolverFileLine(SourceLocationSpec location_spec);
0032 
0033   ~AddressResolverFileLine() override;
0034 
0035   Searcher::CallbackReturn SearchCallback(SearchFilter &filter,
0036                                           SymbolContext &context,
0037                                           Address *addr) override;
0038 
0039   lldb::SearchDepth GetDepth() override;
0040 
0041   void GetDescription(Stream *s) override;
0042 
0043 protected:
0044   SourceLocationSpec m_src_location_spec;
0045 
0046 private:
0047   AddressResolverFileLine(const AddressResolverFileLine &) = delete;
0048   const AddressResolverFileLine &
0049   operator=(const AddressResolverFileLine &) = delete;
0050 };
0051 
0052 } // namespace lldb_private
0053 
0054 #endif // LLDB_CORE_ADDRESSRESOLVERFILELINE_H