1 //===-- UnwindAssembly.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 utility_UnwindAssembly_h_
11 #define utility_UnwindAssembly_h_
13 #include "lldb/lldb-private.h"
14 #include "lldb/Core/ArchSpec.h"
15 #include "lldb/Core/PluginInterface.h"
17 namespace lldb_private {
19 class UnwindAssembly :
20 public PluginInterface
23 static UnwindAssembly*
24 FindPlugin (const ArchSpec &arch);
30 GetNonCallSiteUnwindPlanFromAssembly (AddressRange& func,
32 UnwindPlan& unwind_plan) = 0;
35 GetFastUnwindPlan (AddressRange& func,
37 UnwindPlan &unwind_plan) = 0;
39 // thread may be NULL in which case we only use the Target (e.g. if this is called pre-process-launch).
41 FirstNonPrologueInsn (AddressRange& func,
42 const lldb_private::ExecutionContext &exe_ctx,
43 Address& first_non_prologue_insn) = 0;
46 UnwindAssembly (const ArchSpec &arch);
50 UnwindAssembly(); // Outlaw default constructor
51 DISALLOW_COPY_AND_ASSIGN (UnwindAssembly);
54 } // namespace lldb_private
56 #endif //utility_UnwindAssembly_h_