blob: 5ddba459aaa8f3d5e1cad16b9ce72a135546c7ee [file] [log] [blame]
Greg Clayton1fa6b3d2011-10-13 18:08:26 +00001//===-- SWIG Interface for SBWatchpoint -----------------*- C++ -*-===//
Johnny Chen092bd152011-09-27 01:19:20 +00002//
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."
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000021) SBWatchpoint;
22class SBWatchpoint
Johnny Chen092bd152011-09-27 01:19:20 +000023{
24public:
25
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000026 SBWatchpoint ();
Johnny Chen092bd152011-09-27 01:19:20 +000027
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000028 SBWatchpoint (const lldb::SBWatchpoint &rhs);
Johnny Chen092bd152011-09-27 01:19:20 +000029
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000030 ~SBWatchpoint ();
Johnny Chen092bd152011-09-27 01:19:20 +000031
32 watch_id_t
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000033 GetID ();
Johnny Chen092bd152011-09-27 01:19:20 +000034
35 bool
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000036 IsValid();
Johnny Chen092bd152011-09-27 01:19:20 +000037
38 %feature("docstring", "
39 //------------------------------------------------------------------
40 /// With -1 representing an invalid hardware index.
41 //------------------------------------------------------------------
42 ") GetHardwareIndex;
43 int32_t
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000044 GetHardwareIndex ();
Johnny Chen092bd152011-09-27 01:19:20 +000045
46 lldb::addr_t
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000047 GetWatchAddress ();
Johnny Chen092bd152011-09-27 01:19:20 +000048
49 size_t
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000050 GetWatchSize();
Johnny Chen092bd152011-09-27 01:19:20 +000051
52 void
53 SetEnabled(bool enabled);
54
55 bool
56 IsEnabled ();
57
58 uint32_t
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000059 GetHitCount ();
Johnny Chen092bd152011-09-27 01:19:20 +000060
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