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_
17 // Other libraries and framework includes
19 #include "lldb/Core/StructuredData.h"
20 #include "lldb/Target/StopInfo.h"
22 namespace lldb_private {
24 class InstrumentationRuntimeStopInfo : public StopInfo {
26 ~InstrumentationRuntimeStopInfo() override {}
28 lldb::StopReason GetStopReason() const override {
29 return lldb::eStopReasonInstrumentation;
32 const char *GetDescription() override;
34 bool DoShouldNotify(Event *event_ptr) override { return true; }
36 static lldb::StopInfoSP CreateStopReasonWithInstrumentationData(
37 Thread &thread, std::string description,
38 StructuredData::ObjectSP additional_data);
41 InstrumentationRuntimeStopInfo(Thread &thread, std::string description,
42 StructuredData::ObjectSP additional_data);
45 } // namespace lldb_private
47 #endif // liblldb_InstrumentationRuntimeStopInfo_h_