Path: blob/main/contrib/llvm-project/lldb/source/Target/InstrumentationRuntimeStopInfo.cpp
39587 views
//===-- InstrumentationRuntimeStopInfo.cpp --------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "lldb/Target/InstrumentationRuntimeStopInfo.h"910#include "lldb/Target/InstrumentationRuntime.h"11#include "lldb/Target/Process.h"12#include "lldb/lldb-private.h"1314using namespace lldb;15using namespace lldb_private;1617InstrumentationRuntimeStopInfo::InstrumentationRuntimeStopInfo(18Thread &thread, std::string description,19StructuredData::ObjectSP additional_data)20: StopInfo(thread, 0) {21m_extended_info = additional_data;22m_description = description;23}2425const char *InstrumentationRuntimeStopInfo::GetDescription() {26return m_description.c_str();27}2829StopInfoSP30InstrumentationRuntimeStopInfo::CreateStopReasonWithInstrumentationData(31Thread &thread, std::string description,32StructuredData::ObjectSP additionalData) {33return StopInfoSP(34new InstrumentationRuntimeStopInfo(thread, description, additionalData));35}363738