1 //===-- UnwindAssembly.cpp ------------------------------*- 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 #include "lldb/lldb-private.h"
11 #include "lldb/Core/PluginManager.h"
12 #include "lldb/Core/PluginInterface.h"
13 #include "lldb/Target/UnwindAssembly.h"
16 using namespace lldb_private;
19 UnwindAssembly::FindPlugin (const ArchSpec &arch)
21 UnwindAssemblyCreateInstance create_callback;
23 for (uint32_t idx = 0;
24 (create_callback = PluginManager::GetUnwindAssemblyCreateCallbackAtIndex(idx)) != NULL;
27 std::unique_ptr<UnwindAssembly> assembly_profiler_ap (create_callback (arch));
28 if (assembly_profiler_ap.get ())
29 return assembly_profiler_ap.release ();
34 UnwindAssembly::UnwindAssembly (const ArchSpec &arch) :
39 UnwindAssembly::~UnwindAssembly ()