aboutsummaryrefslogtreecommitdiff
path: root/include/lldb/Target/InstrumentationRuntimeStopInfo.h
blob: df1b937e6e2615288396d1c9cfb350933a95949d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//===-- InstrumentationRuntimeStopInfo.h ------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#ifndef liblldb_InstrumentationRuntimeStopInfo_h_
#define liblldb_InstrumentationRuntimeStopInfo_h_

// C Includes
// C++ Includes
#include <string>

// Other libraries and framework includes
// Project includes
#include "lldb/Target/StopInfo.h"
#include "lldb/Core/StructuredData.h"

namespace lldb_private {

class InstrumentationRuntimeStopInfo : public StopInfo
{
public:
    
    ~InstrumentationRuntimeStopInfo() override
    {
    }
    
    lldb::StopReason
    GetStopReason() const override
    {
        return lldb::eStopReasonInstrumentation;
    }
    
    const char *
    GetDescription() override;

    bool
    DoShouldNotify(Event *event_ptr) override
    {
        return true;
    }
    
    static lldb::StopInfoSP
    CreateStopReasonWithInstrumentationData (Thread &thread, std::string description, StructuredData::ObjectSP additional_data);
    
private:
    
    InstrumentationRuntimeStopInfo(Thread &thread, std::string description, StructuredData::ObjectSP additional_data);
};

} // namespace lldb_private

#endif // liblldb_InstrumentationRuntimeStopInfo_h_