1*7aa51b79SEd Maste //===-- InstrumentationRuntimeStopInfo.cpp ----------------------*- C++ -*-===// 2*7aa51b79SEd Maste // 3*7aa51b79SEd Maste // The LLVM Compiler Infrastructure 4*7aa51b79SEd Maste // 5*7aa51b79SEd Maste // This file is distributed under the University of Illinois Open Source 6*7aa51b79SEd Maste // License. See LICENSE.TXT for details. 7*7aa51b79SEd Maste // 8*7aa51b79SEd Maste //===----------------------------------------------------------------------===// 9*7aa51b79SEd Maste 10*7aa51b79SEd Maste #include "lldb/Target/InstrumentationRuntimeStopInfo.h" 11*7aa51b79SEd Maste 12*7aa51b79SEd Maste #include "lldb/lldb-private.h" 13*7aa51b79SEd Maste #include "lldb/Target/Process.h" 14*7aa51b79SEd Maste #include "lldb/Target/InstrumentationRuntime.h" 15*7aa51b79SEd Maste 16*7aa51b79SEd Maste using namespace lldb; 17*7aa51b79SEd Maste using namespace lldb_private; 18*7aa51b79SEd Maste 19*7aa51b79SEd Maste InstrumentationRuntimeStopInfo::InstrumentationRuntimeStopInfo(Thread &thread, std::string description, StructuredData::ObjectSP additional_data) : 20*7aa51b79SEd Maste StopInfo(thread, 0) 21*7aa51b79SEd Maste { 22*7aa51b79SEd Maste m_extended_info = additional_data; 23*7aa51b79SEd Maste m_description = description; 24*7aa51b79SEd Maste } 25*7aa51b79SEd Maste 26*7aa51b79SEd Maste const char * 27*7aa51b79SEd Maste InstrumentationRuntimeStopInfo::GetDescription () 28*7aa51b79SEd Maste { 29*7aa51b79SEd Maste return m_description.c_str(); 30*7aa51b79SEd Maste } 31*7aa51b79SEd Maste 32*7aa51b79SEd Maste StopInfoSP 33*7aa51b79SEd Maste InstrumentationRuntimeStopInfo::CreateStopReasonWithInstrumentationData (Thread &thread, std::string description, StructuredData::ObjectSP additionalData) 34*7aa51b79SEd Maste { 35*7aa51b79SEd Maste return StopInfoSP(new InstrumentationRuntimeStopInfo(thread, description, additionalData)); 36*7aa51b79SEd Maste } 37