LLDB mainline
PECallFrameInfo.h
Go to the documentation of this file.
1//===-- PECallFrameInfo.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_SOURCE_PLUGINS_OBJECTFILE_PECOFF_PECALLFRAMEINFO_H
10#define LLDB_SOURCE_PLUGINS_OBJECTFILE_PECOFF_PECALLFRAMEINFO_H
11
16
18
19namespace llvm {
20namespace Win64EH {
21
22struct RuntimeFunction;
23
24}
25} // namespace llvm
26
28public:
29 explicit PECallFrameInfo(ObjectFilePECOFF &object_file,
30 uint32_t exception_dir_rva,
31 uint32_t exception_dir_size);
32
34 lldb_private::AddressRange &range) override;
35
36 std::unique_ptr<lldb_private::UnwindPlan>
37 GetUnwindPlan(const lldb_private::Address &addr) override {
38 return GetUnwindPlan({lldb_private::AddressRange(addr, 1)}, addr);
39 }
40
41 std::unique_ptr<lldb_private::UnwindPlan>
42 GetUnwindPlan(llvm::ArrayRef<lldb_private::AddressRange> ranges,
43 const lldb_private::Address &addr) override;
44
45private:
46 const llvm::Win64EH::RuntimeFunction *FindRuntimeFunctionIntersectsWithRange(
47 const lldb_private::AddressRange &range) const;
48
51};
52
53#endif // LLDB_SOURCE_PLUGINS_OBJECTFILE_PECOFF_PECALLFRAMEINFO_H
bool GetAddressRange(lldb_private::Address addr, lldb_private::AddressRange &range) override
ObjectFilePECOFF & m_object_file
std::unique_ptr< lldb_private::UnwindPlan > GetUnwindPlan(const lldb_private::Address &addr) override
const llvm::Win64EH::RuntimeFunction * FindRuntimeFunctionIntersectsWithRange(const lldb_private::AddressRange &range) const
PECallFrameInfo(ObjectFilePECOFF &object_file, uint32_t exception_dir_rva, uint32_t exception_dir_size)
lldb_private::DataExtractor m_exception_dir
A section + offset based address range class.
A section + offset based address class.
Definition Address.h:62
An data extractor class.