Coverage Report

Created: 2023-11-11 10:31

/Users/buildslave/jenkins/workspace/coverage/llvm-project/lldb/source/Target/InstrumentationRuntimeStopInfo.cpp
Line
Count
Source
1
//===-- InstrumentationRuntimeStopInfo.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/InstrumentationRuntimeStopInfo.h"
10
11
#include "lldb/Target/InstrumentationRuntime.h"
12
#include "lldb/Target/Process.h"
13
#include "lldb/lldb-private.h"
14
15
using namespace lldb;
16
using namespace lldb_private;
17
18
InstrumentationRuntimeStopInfo::InstrumentationRuntimeStopInfo(
19
    Thread &thread, std::string description,
20
    StructuredData::ObjectSP additional_data)
21
2
    : StopInfo(thread, 0) {
22
2
  m_extended_info = additional_data;
23
2
  m_description = description;
24
2
}
25
26
6
const char *InstrumentationRuntimeStopInfo::GetDescription() {
27
6
  return m_description.c_str();
28
6
}
29
30
StopInfoSP
31
InstrumentationRuntimeStopInfo::CreateStopReasonWithInstrumentationData(
32
    Thread &thread, std::string description,
33
2
    StructuredData::ObjectSP additionalData) {
34
2
  return StopInfoSP(
35
2
      new InstrumentationRuntimeStopInfo(thread, description, additionalData));
36
2
}