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 for (auto create_callback :
18 MemoryHistorySP memory_history_sp(create_callback(process));
19 if (memory_history_sp)
20 return memory_history_sp;
21 }
22 return {};
23}
static lldb::MemoryHistorySP FindPlugin(const lldb::ProcessSP process)
static llvm::SmallVector< MemoryHistoryCreateInstance > GetMemoryHistoryCreateCallbacks()
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::MemoryHistory > MemoryHistorySP
std::shared_ptr< lldb_private::Process > ProcessSP