LLDB  mainline
UnwindAssembly-x86.h
Go to the documentation of this file.
1 //===-- UnwindAssembly-x86.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_UNWINDASSEMBLY_X86_UNWINDASSEMBLY_X86_H
10 #define LLDB_SOURCE_PLUGINS_UNWINDASSEMBLY_X86_UNWINDASSEMBLY_X86_H
11 
13 
15 #include "lldb/lldb-private.h"
16 
18 public:
19  ~UnwindAssembly_x86() override;
20 
23  lldb_private::UnwindPlan &unwind_plan) override;
24 
25  bool
27  lldb_private::Thread &thread,
28  lldb_private::UnwindPlan &unwind_plan) override;
29 
31  lldb_private::Thread &thread,
32  lldb_private::UnwindPlan &unwind_plan) override;
33 
34  // thread may be NULL in which case we only use the Target (e.g. if this is
35  // called pre-process-launch).
36  bool
38  const lldb_private::ExecutionContext &exe_ctx,
39  lldb_private::Address &first_non_prologue_insn) override;
40 
43 
44  // PluginInterface protocol
45  static void Initialize();
46 
47  static void Terminate();
48 
49  static llvm::StringRef GetPluginNameStatic() { return "x86"; }
50 
51  static llvm::StringRef GetPluginDescriptionStatic();
52 
53  llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
54 
55 private:
57 
59 
61 };
62 
63 #endif // LLDB_SOURCE_PLUGINS_UNWINDASSEMBLY_X86_UNWINDASSEMBLY_X86_H
lldb_private::ExecutionContext
Definition: ExecutionContext.h:292
lldb_private::ArchSpec
Definition: ArchSpec.h:33
UnwindAssembly_x86::Initialize
static void Initialize()
Definition: UnwindAssembly-x86.cpp:242
UnwindAssembly_x86::GetFastUnwindPlan
bool GetFastUnwindPlan(lldb_private::AddressRange &func, lldb_private::Thread &thread, lldb_private::UnwindPlan &unwind_plan) override
Definition: UnwindAssembly-x86.cpp:170
UnwindAssembly_x86::UnwindAssembly_x86
UnwindAssembly_x86(const lldb_private::ArchSpec &arch)
Definition: UnwindAssembly-x86.cpp:37
lldb_private::x86AssemblyInspectionEngine
Definition: x86AssemblyInspectionEngine.h:28
x86AssemblyInspectionEngine.h
UnwindAssembly_x86::~UnwindAssembly_x86
~UnwindAssembly_x86() override
Definition: UnwindAssembly-x86.cpp:41
lldb_private::UnwindAssembly
Definition: UnwindAssembly.h:18
UnwindAssembly_x86::GetPluginDescriptionStatic
static llvm::StringRef GetPluginDescriptionStatic()
Definition: UnwindAssembly-x86.cpp:251
UnwindAssembly_x86
Definition: UnwindAssembly-x86.h:17
UnwindAssembly_x86::m_arch
lldb_private::ArchSpec m_arch
Definition: UnwindAssembly-x86.h:58
UnwindAssembly_x86::CreateInstance
static lldb_private::UnwindAssembly * CreateInstance(const lldb_private::ArchSpec &arch)
Definition: UnwindAssembly-x86.cpp:235
UnwindAssembly_x86::m_assembly_inspection_engine
lldb_private::x86AssemblyInspectionEngine * m_assembly_inspection_engine
Definition: UnwindAssembly-x86.h:60
lldb_private::Thread
Definition: Thread.h:61
lldb_private::AddressRange
Definition: AddressRange.h:25
UnwindAssembly_x86::GetPluginName
llvm::StringRef GetPluginName() override
Definition: UnwindAssembly-x86.h:53
lldb-private.h
UnwindAssembly_x86::AugmentUnwindPlanFromCallSite
bool AugmentUnwindPlanFromCallSite(lldb_private::AddressRange &func, lldb_private::Thread &thread, lldb_private::UnwindPlan &unwind_plan) override
Definition: UnwindAssembly-x86.cpp:67
lldb_private::Address
Definition: Address.h:59
UnwindAssembly_x86::Terminate
static void Terminate()
Definition: UnwindAssembly-x86.cpp:247
UnwindAssembly_x86::GetNonCallSiteUnwindPlanFromAssembly
bool GetNonCallSiteUnwindPlanFromAssembly(lldb_private::AddressRange &func, lldb_private::Thread &thread, lldb_private::UnwindPlan &unwind_plan) override
Definition: UnwindAssembly-x86.cpp:45
UnwindAssembly_x86::GetPluginNameStatic
static llvm::StringRef GetPluginNameStatic()
Definition: UnwindAssembly-x86.h:49
UnwindAssembly.h
lldb_private::UnwindPlan
Definition: UnwindPlan.h:53
UnwindAssembly_x86::FirstNonPrologueInsn
bool FirstNonPrologueInsn(lldb_private::AddressRange &func, const lldb_private::ExecutionContext &exe_ctx, lldb_private::Address &first_non_prologue_insn) override
Definition: UnwindAssembly-x86.cpp:206