freebsd-dev/source/Target/MemoryHistory.cpp
Ed Maste 205afe6798 Import LLDB as of upstream SVN r225923 (git 2b588ecd)
This corresponds with the branchpoint for the 3.6 release.
A number of files not required for the FreeBSD build have been removed.

Sponsored by:	DARPA, AFRL
2015-02-06 21:38:51 +00:00

31 lines
912 B
C++

//===-- MemoryHistory.cpp -------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "lldb/Target/MemoryHistory.h"
#include "lldb/Core/PluginManager.h"
using namespace lldb;
using namespace lldb_private;
lldb::MemoryHistorySP
MemoryHistory::FindPlugin (const ProcessSP process)
{
MemoryHistoryCreateInstance create_callback = NULL;
for (uint32_t idx = 0; (create_callback = PluginManager::GetMemoryHistoryCreateCallbackAtIndex(idx)) != NULL; ++idx)
{
MemoryHistorySP memory_history_sp (create_callback (process));
if (memory_history_sp.get())
return memory_history_sp;
}
return MemoryHistorySP();
}