Coverage Report

Created: 2023-11-11 10:31

/Users/buildslave/jenkins/workspace/coverage/llvm-project/lldb/source/Target/MemoryHistory.cpp
Line
Count
Source (jump to first uncovered line)
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
0
lldb::MemoryHistorySP MemoryHistory::FindPlugin(const ProcessSP process) {
16
0
  MemoryHistoryCreateInstance create_callback = nullptr;
17
18
0
  for (uint32_t idx = 0;
19
0
       (create_callback = PluginManager::GetMemoryHistoryCreateCallbackAtIndex(
20
0
            idx)) != nullptr;
21
0
       ++idx) {
22
0
    MemoryHistorySP memory_history_sp(create_callback(process));
23
0
    if (memory_history_sp)
24
0
      return memory_history_sp;
25
0
  }
26
27
0
  return MemoryHistorySP();
28
0
}