]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - include/lldb/Target/InstrumentationRuntimeStopInfo.h
Vendor import of lldb trunk r257626:
[FreeBSD/FreeBSD.git] / 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/Target/StopInfo.h"
20 #include "lldb/Core/StructuredData.h"
21
22 namespace lldb_private {
23
24 class InstrumentationRuntimeStopInfo : public StopInfo
25 {
26 public:
27     
28     ~InstrumentationRuntimeStopInfo() override
29     {
30     }
31     
32     lldb::StopReason
33     GetStopReason() const override
34     {
35         return lldb::eStopReasonInstrumentation;
36     }
37     
38     const char *
39     GetDescription() override;
40
41     bool
42     DoShouldNotify(Event *event_ptr) override
43     {
44         return true;
45     }
46     
47     static lldb::StopInfoSP
48     CreateStopReasonWithInstrumentationData (Thread &thread, std::string description, StructuredData::ObjectSP additional_data);
49     
50 private:
51     
52     InstrumentationRuntimeStopInfo(Thread &thread, std::string description, StructuredData::ObjectSP additional_data);
53 };
54
55 } // namespace lldb_private
56
57 #endif // liblldb_InstrumentationRuntimeStopInfo_h_