1 //===-- InstrumentationRuntimeStopInfo.h ------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_InstrumentationRuntimeStopInfo_h_
11 #define liblldb_InstrumentationRuntimeStopInfo_h_
15 #include "lldb/Target/StopInfo.h"
16 #include "lldb/Utility/StructuredData.h"
18 namespace lldb_private {
20 class InstrumentationRuntimeStopInfo : public StopInfo {
22 ~InstrumentationRuntimeStopInfo() override {}
24 lldb::StopReason GetStopReason() const override {
25 return lldb::eStopReasonInstrumentation;
28 const char *GetDescription() override;
30 bool DoShouldNotify(Event *event_ptr) override { return true; }
32 static lldb::StopInfoSP CreateStopReasonWithInstrumentationData(
33 Thread &thread, std::string description,
34 StructuredData::ObjectSP additional_data);
37 InstrumentationRuntimeStopInfo(Thread &thread, std::string description,
38 StructuredData::ObjectSP additional_data);
41 } // namespace lldb_private
43 #endif // liblldb_InstrumentationRuntimeStopInfo_h_