LLDB
mainline
llvm-project
lldb
source
Target
MemoryHistory.cpp
Go to the documentation of this file.
1
//===-- MemoryHistory.cpp -------------------------------------------------===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#include "
lldb/Target/MemoryHistory.h
"
10
#include "
lldb/Core/PluginManager.h
"
11
12
using namespace
lldb
;
13
using namespace
lldb_private
;
14
15
lldb::MemoryHistorySP
MemoryHistory::FindPlugin
(
const
ProcessSP
process) {
16
for
(
auto
create_callback :
17
PluginManager::GetMemoryHistoryCreateCallbacks
()) {
18
MemoryHistorySP
memory_history_sp(create_callback(process));
19
if
(memory_history_sp)
20
return
memory_history_sp;
21
}
22
return
{};
23
}
MemoryHistory.h
PluginManager.h
lldb_private::MemoryHistory::FindPlugin
static lldb::MemoryHistorySP FindPlugin(const lldb::ProcessSP process)
Definition
MemoryHistory.cpp:15
lldb_private::PluginManager::GetMemoryHistoryCreateCallbacks
static llvm::SmallVector< MemoryHistoryCreateInstance > GetMemoryHistoryCreateCallbacks()
Definition
PluginManager.cpp:1843
lldb_private
A class that represents a running process on the host machine.
Definition
SBAddressRange.h:14
lldb
Definition
SBAddress.h:15
lldb::MemoryHistorySP
std::shared_ptr< lldb_private::MemoryHistory > MemoryHistorySP
Definition
lldb-forward.h:377
lldb::ProcessSP
std::shared_ptr< lldb_private::Process > ProcessSP
Definition
lldb-forward.h:396
Generated on
for LLDB by
1.14.0