17aa51b79SEd Maste //===-- InstrumentationRuntimeStopInfo.cpp ----------------------*- C++ -*-===//
27aa51b79SEd Maste //
37aa51b79SEd Maste //                     The LLVM Compiler Infrastructure
47aa51b79SEd Maste //
57aa51b79SEd Maste // This file is distributed under the University of Illinois Open Source
67aa51b79SEd Maste // License. See LICENSE.TXT for details.
77aa51b79SEd Maste //
87aa51b79SEd Maste //===----------------------------------------------------------------------===//
97aa51b79SEd Maste 
107aa51b79SEd Maste #include "lldb/Target/InstrumentationRuntimeStopInfo.h"
117aa51b79SEd Maste 
127aa51b79SEd Maste #include "lldb/Target/InstrumentationRuntime.h"
13*435933ddSDimitry Andric #include "lldb/Target/Process.h"
14*435933ddSDimitry Andric #include "lldb/lldb-private.h"
157aa51b79SEd Maste 
167aa51b79SEd Maste using namespace lldb;
177aa51b79SEd Maste using namespace lldb_private;
187aa51b79SEd Maste 
InstrumentationRuntimeStopInfo(Thread & thread,std::string description,StructuredData::ObjectSP additional_data)19*435933ddSDimitry Andric InstrumentationRuntimeStopInfo::InstrumentationRuntimeStopInfo(
20*435933ddSDimitry Andric     Thread &thread, std::string description,
21*435933ddSDimitry Andric     StructuredData::ObjectSP additional_data)
22*435933ddSDimitry Andric     : StopInfo(thread, 0) {
237aa51b79SEd Maste   m_extended_info = additional_data;
247aa51b79SEd Maste   m_description = description;
257aa51b79SEd Maste }
267aa51b79SEd Maste 
GetDescription()27*435933ddSDimitry Andric const char *InstrumentationRuntimeStopInfo::GetDescription() {
287aa51b79SEd Maste   return m_description.c_str();
297aa51b79SEd Maste }
307aa51b79SEd Maste 
317aa51b79SEd Maste StopInfoSP
CreateStopReasonWithInstrumentationData(Thread & thread,std::string description,StructuredData::ObjectSP additionalData)32*435933ddSDimitry Andric InstrumentationRuntimeStopInfo::CreateStopReasonWithInstrumentationData(
33*435933ddSDimitry Andric     Thread &thread, std::string description,
34*435933ddSDimitry Andric     StructuredData::ObjectSP additionalData) {
35*435933ddSDimitry Andric   return StopInfoSP(
36*435933ddSDimitry Andric       new InstrumentationRuntimeStopInfo(thread, description, additionalData));
377aa51b79SEd Maste }
38