LLDB  mainline
InstrumentationRuntimeStopInfo.cpp
Go to the documentation of this file.
1 //===-- InstrumentationRuntimeStopInfo.cpp --------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
10 
12 #include "lldb/Target/Process.h"
13 #include "lldb/lldb-private.h"
14 
15 using namespace lldb;
16 using namespace lldb_private;
17 
18 InstrumentationRuntimeStopInfo::InstrumentationRuntimeStopInfo(
19  Thread &thread, std::string description,
20  StructuredData::ObjectSP additional_data)
21  : StopInfo(thread, 0) {
22  m_extended_info = additional_data;
23  m_description = description;
24 }
25 
27  return m_description.c_str();
28 }
29 
30 StopInfoSP
32  Thread &thread, std::string description,
33  StructuredData::ObjectSP additionalData) {
34  return StopInfoSP(
35  new InstrumentationRuntimeStopInfo(thread, description, additionalData));
36 }
InstrumentationRuntime.h
lldb_private::InstrumentationRuntimeStopInfo::CreateStopReasonWithInstrumentationData
static lldb::StopInfoSP CreateStopReasonWithInstrumentationData(Thread &thread, std::string description, StructuredData::ObjectSP additional_data)
Definition: InstrumentationRuntimeStopInfo.cpp:31
lldb_private::InstrumentationRuntimeStopInfo::GetDescription
const char * GetDescription() override
Definition: InstrumentationRuntimeStopInfo.cpp:26
Process.h
InstrumentationRuntimeStopInfo.h
lldb_private::Thread
Definition: Thread.h:60
lldb_private::StructuredData::ObjectSP
std::shared_ptr< Object > ObjectSP
Definition: StructuredData.h:59
string
string(SUBSTRING ${p} 10 -1 pStripped) if($
Definition: Plugins/CMakeLists.txt:40
lldb-private.h
lldb_private::StopInfo::m_description
std::string m_description
Definition: StopInfo.h:179
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::StopInfo
Definition: StopInfo.h:20
lldb_private::StopInfo::m_extended_info
StructuredData::ObjectSP m_extended_info
Definition: StopInfo.h:184
lldb
Definition: SBAddress.h:15
lldb_private::InstrumentationRuntimeStopInfo::InstrumentationRuntimeStopInfo
InstrumentationRuntimeStopInfo(Thread &thread, std::string description, StructuredData::ObjectSP additional_data)
Definition: InstrumentationRuntimeStopInfo.cpp:18