]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/Target/InstrumentationRuntimeStopInfo.h
Import mandoc snapshot 2017-06-08
[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 // C Includes
14 // C++ Includes
15 #include <string>
16
17 // Other libraries and framework includes
18 // Project includes
19 #include "lldb/Core/StructuredData.h"
20 #include "lldb/Target/StopInfo.h"
21
22 namespace lldb_private {
23
24 class InstrumentationRuntimeStopInfo : public StopInfo {
25 public:
26   ~InstrumentationRuntimeStopInfo() override {}
27
28   lldb::StopReason GetStopReason() const override {
29     return lldb::eStopReasonInstrumentation;
30   }
31
32   const char *GetDescription() override;
33
34   bool DoShouldNotify(Event *event_ptr) override { return true; }
35
36   static lldb::StopInfoSP CreateStopReasonWithInstrumentationData(
37       Thread &thread, std::string description,
38       StructuredData::ObjectSP additional_data);
39
40 private:
41   InstrumentationRuntimeStopInfo(Thread &thread, std::string description,
42                                  StructuredData::ObjectSP additional_data);
43 };
44
45 } // namespace lldb_private
46
47 #endif // liblldb_InstrumentationRuntimeStopInfo_h_