1*80814287SRaphael Isemann //===-- InstrumentationRuntimeStopInfo.cpp --------------------------------===//
2afdf842bSKuba Brecka //
32946cd70SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
42946cd70SChandler Carruth // See https://llvm.org/LICENSE.txt for license information.
52946cd70SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6afdf842bSKuba Brecka //
7afdf842bSKuba Brecka //===----------------------------------------------------------------------===//
8afdf842bSKuba Brecka
9afdf842bSKuba Brecka #include "lldb/Target/InstrumentationRuntimeStopInfo.h"
10afdf842bSKuba Brecka
11afdf842bSKuba Brecka #include "lldb/Target/InstrumentationRuntime.h"
12b9c1b51eSKate Stone #include "lldb/Target/Process.h"
13b9c1b51eSKate Stone #include "lldb/lldb-private.h"
14afdf842bSKuba Brecka
15afdf842bSKuba Brecka using namespace lldb;
16afdf842bSKuba Brecka using namespace lldb_private;
17afdf842bSKuba Brecka
InstrumentationRuntimeStopInfo(Thread & thread,std::string description,StructuredData::ObjectSP additional_data)18b9c1b51eSKate Stone InstrumentationRuntimeStopInfo::InstrumentationRuntimeStopInfo(
19b9c1b51eSKate Stone Thread &thread, std::string description,
20b9c1b51eSKate Stone StructuredData::ObjectSP additional_data)
21b9c1b51eSKate Stone : StopInfo(thread, 0) {
22afdf842bSKuba Brecka m_extended_info = additional_data;
23afdf842bSKuba Brecka m_description = description;
24afdf842bSKuba Brecka }
25afdf842bSKuba Brecka
GetDescription()26b9c1b51eSKate Stone const char *InstrumentationRuntimeStopInfo::GetDescription() {
27afdf842bSKuba Brecka return m_description.c_str();
28afdf842bSKuba Brecka }
29afdf842bSKuba Brecka
30afdf842bSKuba Brecka StopInfoSP
CreateStopReasonWithInstrumentationData(Thread & thread,std::string description,StructuredData::ObjectSP additionalData)31b9c1b51eSKate Stone InstrumentationRuntimeStopInfo::CreateStopReasonWithInstrumentationData(
32b9c1b51eSKate Stone Thread &thread, std::string description,
33b9c1b51eSKate Stone StructuredData::ObjectSP additionalData) {
34b9c1b51eSKate Stone return StopInfoSP(
35b9c1b51eSKate Stone new InstrumentationRuntimeStopInfo(thread, description, additionalData));
36afdf842bSKuba Brecka }
37