blob: dbbd4f4fc1d8c332b42aac2ecd5cf69dde4e0245 [file] [log] [blame]
Kuba Breckaafdf8422014-10-10 23:43:03 +00001//===-- InstrumentationRuntimeStopInfo.cpp ----------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#include "lldb/Target/InstrumentationRuntimeStopInfo.h"
11
Kuba Breckaafdf8422014-10-10 23:43:03 +000012#include "lldb/Target/InstrumentationRuntime.h"
Kate Stoneb9c1b512016-09-06 20:57:50 +000013#include "lldb/Target/Process.h"
14#include "lldb/lldb-private.h"
Kuba Breckaafdf8422014-10-10 23:43:03 +000015
16using namespace lldb;
17using namespace lldb_private;
18
Kate Stoneb9c1b512016-09-06 20:57:50 +000019InstrumentationRuntimeStopInfo::InstrumentationRuntimeStopInfo(
20 Thread &thread, std::string description,
21 StructuredData::ObjectSP additional_data)
22 : StopInfo(thread, 0) {
23 m_extended_info = additional_data;
24 m_description = description;
Kuba Breckaafdf8422014-10-10 23:43:03 +000025}
26
Kate Stoneb9c1b512016-09-06 20:57:50 +000027const char *InstrumentationRuntimeStopInfo::GetDescription() {
28 return m_description.c_str();
Kuba Breckaafdf8422014-10-10 23:43:03 +000029}
30
31StopInfoSP
Kate Stoneb9c1b512016-09-06 20:57:50 +000032InstrumentationRuntimeStopInfo::CreateStopReasonWithInstrumentationData(
33 Thread &thread, std::string description,
34 StructuredData::ObjectSP additionalData) {
35 return StopInfoSP(
36 new InstrumentationRuntimeStopInfo(thread, description, additionalData));
Kuba Breckaafdf8422014-10-10 23:43:03 +000037}