Kuba Brecka | afdf842 | 2014-10-10 23:43:03 +0000 | [diff] [blame^] | 1 | //===-- 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 | |
| 12 | #include "lldb/lldb-private.h" |
| 13 | #include "lldb/Target/Process.h" |
| 14 | #include "lldb/Target/InstrumentationRuntime.h" |
| 15 | |
| 16 | using namespace lldb; |
| 17 | using namespace lldb_private; |
| 18 | |
| 19 | InstrumentationRuntimeStopInfo::InstrumentationRuntimeStopInfo(Thread &thread, std::string description, StructuredData::ObjectSP additional_data) : |
| 20 | StopInfo(thread, 0) |
| 21 | { |
| 22 | m_extended_info = additional_data; |
| 23 | m_description = description; |
| 24 | } |
| 25 | |
| 26 | const char * |
| 27 | InstrumentationRuntimeStopInfo::GetDescription () |
| 28 | { |
| 29 | return m_description.c_str(); |
| 30 | } |
| 31 | |
| 32 | StopInfoSP |
| 33 | InstrumentationRuntimeStopInfo::CreateStopReasonWithInstrumentationData (Thread &thread, std::string description, StructuredData::ObjectSP additionalData) |
| 34 | { |
| 35 | return StopInfoSP(new InstrumentationRuntimeStopInfo(thread, description, additionalData)); |
| 36 | } |