Path: blob/main/contrib/llvm-project/lldb/source/Target/MemoryHistory.cpp
39587 views
//===-- MemoryHistory.cpp -------------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "lldb/Target/MemoryHistory.h"9#include "lldb/Core/PluginManager.h"1011using namespace lldb;12using namespace lldb_private;1314lldb::MemoryHistorySP MemoryHistory::FindPlugin(const ProcessSP process) {15MemoryHistoryCreateInstance create_callback = nullptr;1617for (uint32_t idx = 0;18(create_callback = PluginManager::GetMemoryHistoryCreateCallbackAtIndex(19idx)) != nullptr;20++idx) {21MemoryHistorySP memory_history_sp(create_callback(process));22if (memory_history_sp)23return memory_history_sp;24}2526return MemoryHistorySP();27}282930