1 //===-- UnwindAssembly-x86.h ------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_UnwindAssembly_x86_h_
11 #define liblldb_UnwindAssembly_x86_h_
13 #include "x86AssemblyInspectionEngine.h"
15 #include "lldb/Target/UnwindAssembly.h"
16 #include "lldb/lldb-private.h"
18 class UnwindAssembly_x86 : public lldb_private::UnwindAssembly {
20 ~UnwindAssembly_x86() override;
22 bool GetNonCallSiteUnwindPlanFromAssembly(
23 lldb_private::AddressRange &func, lldb_private::Thread &thread,
24 lldb_private::UnwindPlan &unwind_plan) override;
27 AugmentUnwindPlanFromCallSite(lldb_private::AddressRange &func,
28 lldb_private::Thread &thread,
29 lldb_private::UnwindPlan &unwind_plan) override;
31 bool GetFastUnwindPlan(lldb_private::AddressRange &func,
32 lldb_private::Thread &thread,
33 lldb_private::UnwindPlan &unwind_plan) override;
35 // thread may be NULL in which case we only use the Target (e.g. if this is
36 // called pre-process-launch).
38 FirstNonPrologueInsn(lldb_private::AddressRange &func,
39 const lldb_private::ExecutionContext &exe_ctx,
40 lldb_private::Address &first_non_prologue_insn) override;
42 static lldb_private::UnwindAssembly *
43 CreateInstance(const lldb_private::ArchSpec &arch);
45 //------------------------------------------------------------------
46 // PluginInterface protocol
47 //------------------------------------------------------------------
48 static void Initialize();
50 static void Terminate();
52 static lldb_private::ConstString GetPluginNameStatic();
54 static const char *GetPluginDescriptionStatic();
56 lldb_private::ConstString GetPluginName() override;
58 uint32_t GetPluginVersion() override;
61 UnwindAssembly_x86(const lldb_private::ArchSpec &arch);
63 lldb_private::ArchSpec m_arch;
65 lldb_private::x86AssemblyInspectionEngine *m_assembly_inspection_engine;
68 #endif // liblldb_UnwindAssembly_x86_h_