]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/Target/InstrumentationRuntimeStopInfo.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / include / lldb / Target / InstrumentationRuntimeStopInfo.h
1 //===-- InstrumentationRuntimeStopInfo.h ------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef liblldb_InstrumentationRuntimeStopInfo_h_
11 #define liblldb_InstrumentationRuntimeStopInfo_h_
12
13 #include <string>
14
15 #include "lldb/Target/StopInfo.h"
16 #include "lldb/Utility/StructuredData.h"
17
18 namespace lldb_private {
19
20 class InstrumentationRuntimeStopInfo : public StopInfo {
21 public:
22   ~InstrumentationRuntimeStopInfo() override {}
23
24   lldb::StopReason GetStopReason() const override {
25     return lldb::eStopReasonInstrumentation;
26   }
27
28   const char *GetDescription() override;
29
30   bool DoShouldNotify(Event *event_ptr) override { return true; }
31
32   static lldb::StopInfoSP CreateStopReasonWithInstrumentationData(
33       Thread &thread, std::string description,
34       StructuredData::ObjectSP additional_data);
35
36 private:
37   InstrumentationRuntimeStopInfo(Thread &thread, std::string description,
38                                  StructuredData::ObjectSP additional_data);
39 };
40
41 } // namespace lldb_private
42
43 #endif // liblldb_InstrumentationRuntimeStopInfo_h_