blob: 53d675ab09e81f8ce96a0bf5ddad74f7c3fc08dc [file] [log] [blame]
Kuba Breckabeed8212014-09-04 01:03:18 +00001//===-- MemoryHistory.cpp -------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#include "lldb/Target/MemoryHistory.h"
11
12#include "lldb/Core/PluginManager.h"
13
14using namespace lldb;
15using namespace lldb_private;
16
17lldb::MemoryHistorySP
18MemoryHistory::FindPlugin (const ProcessSP process)
19{
20 MemoryHistoryCreateInstance create_callback = NULL;
21
22 for (uint32_t idx = 0; (create_callback = PluginManager::GetMemoryHistoryCreateCallbackAtIndex(idx)) != NULL; ++idx)
23 {
24 return create_callback(process);
25 }
26
27 return MemoryHistorySP();
28}