SBWatchpoint.h revision 0a19a1b9c25117854f226256805239d95153ed2d
1//===-- SBWatchpoint.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 LLDB_SBWatchpoint_h_
11#define LLDB_SBWatchpoint_h_
12
13#include "lldb/API/SBDefines.h"
14
15namespace lldb {
16
17class SBWatchpoint
18{
19public:
20
21    SBWatchpoint ();
22
23    SBWatchpoint (const lldb::SBWatchpoint &rhs);
24
25    SBWatchpoint (const lldb::WatchpointSP &wp_sp);
26
27    ~SBWatchpoint ();
28
29    const lldb::SBWatchpoint &
30    operator = (const lldb::SBWatchpoint &rhs);
31
32    bool
33    IsValid() const;
34
35    SBError
36    GetError();
37
38    watch_id_t
39    GetID ();
40
41    /// With -1 representing an invalid hardware index.
42    int32_t
43    GetHardwareIndex ();
44
45    lldb::addr_t
46    GetWatchAddress ();
47
48    size_t
49    GetWatchSize();
50
51    void
52    SetEnabled(bool enabled);
53
54    bool
55    IsEnabled ();
56
57    uint32_t
58    GetHitCount ();
59
60    uint32_t
61    GetIgnoreCount ();
62
63    void
64    SetIgnoreCount (uint32_t n);
65
66    const char *
67    GetCondition ();
68
69    void
70    SetCondition (const char *condition);
71
72    bool
73    GetDescription (lldb::SBStream &description, DescriptionLevel level);
74
75    void
76    Clear ();
77
78    lldb::WatchpointSP
79    GetSP () const;
80
81    void
82    SetSP (const lldb::WatchpointSP &sp);
83
84private:
85    friend class SBTarget;
86    friend class SBValue;
87
88
89    lldb::WatchpointSP m_opaque_sp;
90
91};
92
93} // namespace lldb
94
95#endif  // LLDB_SBWatchpoint_h_
96