AddressResolverFileLine.h revision 1.1.1.3
1//===-- AddressResolverFileLine.h -------------------------------*- C++ -*-===// 2// 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 6// 7//===----------------------------------------------------------------------===// 8 9#ifndef LLDB_CORE_ADDRESSRESOLVERFILELINE_H 10#define LLDB_CORE_ADDRESSRESOLVERFILELINE_H 11 12#include "lldb/Core/AddressResolver.h" 13#include "lldb/Core/SearchFilter.h" 14#include "lldb/Core/SourceLocationSpec.h" 15#include "lldb/lldb-defines.h" 16 17#include <cstdint> 18 19namespace lldb_private { 20class Address; 21class Stream; 22class SymbolContext; 23 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. 28 29class AddressResolverFileLine : public AddressResolver { 30public: 31 AddressResolverFileLine(SourceLocationSpec location_spec); 32 33 ~AddressResolverFileLine() override; 34 35 Searcher::CallbackReturn SearchCallback(SearchFilter &filter, 36 SymbolContext &context, 37 Address *addr) override; 38 39 lldb::SearchDepth GetDepth() override; 40 41 void GetDescription(Stream *s) override; 42 43protected: 44 SourceLocationSpec m_src_location_spec; 45 46private: 47 AddressResolverFileLine(const AddressResolverFileLine &) = delete; 48 const AddressResolverFileLine & 49 operator=(const AddressResolverFileLine &) = delete; 50}; 51 52} // namespace lldb_private 53 54#endif // LLDB_CORE_ADDRESSRESOLVERFILELINE_H 55