blob: a5e21ddb894c18e68000fb2b74f33ff6c45e9b7b [file] [log] [blame]
Johnny Chen092bd152011-09-27 01:19:20 +00001//===-- SWIG Interface for SBWatchpointLocation -----------------*- 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
10namespace lldb {
11
12%feature("docstring",
13"Represents an instance of watchpoint location for a specific target program.
14
15A watchpoint location is determined by the address and the byte size that
16resulted in this particular instantiation. Each watchpoint location has its
17settable options.
18
19See also SBTarget.watchpoint_location_iter() for for example usage of iterating
20through the watchpoint locations of the target."
21) SBWatchpointLocation;
22class SBWatchpointLocation
23{
24public:
25
26 SBWatchpointLocation ();
27
28 SBWatchpointLocation (const lldb::SBWatchpointLocation &rhs);
29
30 ~SBWatchpointLocation ();
31
32 watch_id_t
33 GetID () const;
34
35 bool
36 IsValid() const;
37
38 %feature("docstring", "
39 //------------------------------------------------------------------
40 /// With -1 representing an invalid hardware index.
41 //------------------------------------------------------------------
42 ") GetHardwareIndex;
43 int32_t
44 GetHardwareIndex () const;
45
46 lldb::addr_t
47 GetWatchAddress () const;
48
49 size_t
50 GetWatchSize() const;
51
52 void
53 SetEnabled(bool enabled);
54
55 bool
56 IsEnabled ();
57
58 uint32_t
59 GetHitCount () const;
60
61 uint32_t
62 GetIgnoreCount ();
63
64 void
65 SetIgnoreCount (uint32_t n);
66
67 bool
68 GetDescription (lldb::SBStream &description, DescriptionLevel level);
69};
70
71} // namespace lldb