1cfca06d7SDimitry Andric //===-- InstrumentationRuntimeStopInfo.cpp --------------------------------===//
2205afe67SEd Maste //
35f29bb8aSDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
45f29bb8aSDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
55f29bb8aSDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6205afe67SEd Maste //
7205afe67SEd Maste //===----------------------------------------------------------------------===//
8205afe67SEd Maste
9205afe67SEd Maste #include "lldb/Target/InstrumentationRuntimeStopInfo.h"
10205afe67SEd Maste
11205afe67SEd Maste #include "lldb/Target/InstrumentationRuntime.h"
1214f1b3e8SDimitry Andric #include "lldb/Target/Process.h"
1314f1b3e8SDimitry Andric #include "lldb/lldb-private.h"
14205afe67SEd Maste
15205afe67SEd Maste using namespace lldb;
16205afe67SEd Maste using namespace lldb_private;
17205afe67SEd Maste
InstrumentationRuntimeStopInfo(Thread & thread,std::string description,StructuredData::ObjectSP additional_data)1814f1b3e8SDimitry Andric InstrumentationRuntimeStopInfo::InstrumentationRuntimeStopInfo(
1914f1b3e8SDimitry Andric Thread &thread, std::string description,
2014f1b3e8SDimitry Andric StructuredData::ObjectSP additional_data)
2114f1b3e8SDimitry Andric : StopInfo(thread, 0) {
22205afe67SEd Maste m_extended_info = additional_data;
23205afe67SEd Maste m_description = description;
24205afe67SEd Maste }
25205afe67SEd Maste
GetDescription()2614f1b3e8SDimitry Andric const char *InstrumentationRuntimeStopInfo::GetDescription() {
27205afe67SEd Maste return m_description.c_str();
28205afe67SEd Maste }
29205afe67SEd Maste
30205afe67SEd Maste StopInfoSP
CreateStopReasonWithInstrumentationData(Thread & thread,std::string description,StructuredData::ObjectSP additionalData)3114f1b3e8SDimitry Andric InstrumentationRuntimeStopInfo::CreateStopReasonWithInstrumentationData(
3214f1b3e8SDimitry Andric Thread &thread, std::string description,
3314f1b3e8SDimitry Andric StructuredData::ObjectSP additionalData) {
3414f1b3e8SDimitry Andric return StopInfoSP(
3514f1b3e8SDimitry Andric new InstrumentationRuntimeStopInfo(thread, description, additionalData));
36205afe67SEd Maste }
37