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_
15 // Other libraries and framework includes
16 #include "x86AssemblyInspectionEngine.h"
19 #include "lldb/Target/UnwindAssembly.h"
20 #include "lldb/lldb-private.h"
22 class UnwindAssembly_x86 : public lldb_private::UnwindAssembly {
24 ~UnwindAssembly_x86() override;
26 bool GetNonCallSiteUnwindPlanFromAssembly(
27 lldb_private::AddressRange &func, lldb_private::Thread &thread,
28 lldb_private::UnwindPlan &unwind_plan) override;
31 AugmentUnwindPlanFromCallSite(lldb_private::AddressRange &func,
32 lldb_private::Thread &thread,
33 lldb_private::UnwindPlan &unwind_plan) override;
35 bool GetFastUnwindPlan(lldb_private::AddressRange &func,
36 lldb_private::Thread &thread,
37 lldb_private::UnwindPlan &unwind_plan) override;
39 // thread may be NULL in which case we only use the Target (e.g. if this is
40 // called pre-process-launch).
42 FirstNonPrologueInsn(lldb_private::AddressRange &func,
43 const lldb_private::ExecutionContext &exe_ctx,
44 lldb_private::Address &first_non_prologue_insn) override;
46 static lldb_private::UnwindAssembly *
47 CreateInstance(const lldb_private::ArchSpec &arch);
49 //------------------------------------------------------------------
50 // PluginInterface protocol
51 //------------------------------------------------------------------
52 static void Initialize();
54 static void Terminate();
56 static lldb_private::ConstString GetPluginNameStatic();
58 static const char *GetPluginDescriptionStatic();
60 lldb_private::ConstString GetPluginName() override;
62 uint32_t GetPluginVersion() override;
65 UnwindAssembly_x86(const lldb_private::ArchSpec &arch);
67 lldb_private::ArchSpec m_arch;
69 lldb_private::x86AssemblyInspectionEngine *m_assembly_inspection_engine;
72 #endif // liblldb_UnwindAssembly_x86_h_