LLDB mainline
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
11
12using namespace lldb;
13using namespace lldb_private;
14
16 MemoryHistoryCreateInstance create_callback = nullptr;
17
18 for (uint32_t idx = 0;
20 idx)) != nullptr;
21 ++idx) {
22 MemoryHistorySP memory_history_sp(create_callback(process));
23 if (memory_history_sp)
24 return memory_history_sp;
25 }
26
27 return MemoryHistorySP();
28}
static lldb::MemoryHistorySP FindPlugin(const lldb::ProcessSP process)
static MemoryHistoryCreateInstance GetMemoryHistoryCreateCallbackAtIndex(uint32_t idx)
A class that represents a running process on the host machine.
lldb::MemoryHistorySP(* MemoryHistoryCreateInstance)(const lldb::ProcessSP &process_sp)
Definition: SBAddress.h:15
std::shared_ptr< lldb_private::MemoryHistory > MemoryHistorySP
Definition: lldb-forward.h:368
std::shared_ptr< lldb_private::Process > ProcessSP
Definition: lldb-forward.h:387