]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/source/Target/InstrumentationRuntimeStopInfo.cpp
Merge compiler-rt trunk r351319, and resolve conflicts.
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / source / Target / InstrumentationRuntimeStopInfo.cpp
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/Target/InstrumentationRuntime.h"
13 #include "lldb/Target/Process.h"
14 #include "lldb/lldb-private.h"
15
16 using namespace lldb;
17 using namespace lldb_private;
18
19 InstrumentationRuntimeStopInfo::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;
25 }
26
27 const char *InstrumentationRuntimeStopInfo::GetDescription() {
28   return m_description.c_str();
29 }
30
31 StopInfoSP
32 InstrumentationRuntimeStopInfo::CreateStopReasonWithInstrumentationData(
33     Thread &thread, std::string description,
34     StructuredData::ObjectSP additionalData) {
35   return StopInfoSP(
36       new InstrumentationRuntimeStopInfo(thread, description, additionalData));
37 }