blob: 75259310271fed7b4c0f4d90c8d8616a46727258 [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",
Johnny Chenecd4feb2011-10-14 00:42:25 +000013"Represents an instance of watchpoint for a specific target program.
Johnny Chen092bd152011-09-27 01:19:20 +000014
Johnny Chenecd4feb2011-10-14 00:42:25 +000015A watchpoint is determined by the address and the byte size that resulted in
16this particular instantiation. Each watchpoint has its settable options.
Johnny Chen092bd152011-09-27 01:19:20 +000017
Johnny Chenecd4feb2011-10-14 00:42:25 +000018See also SBTarget.watchpoint_iter() for for example usage of iterating through
19the watchpoints of the target."
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000020) SBWatchpoint;
21class SBWatchpoint
Johnny Chen092bd152011-09-27 01:19:20 +000022{
23public:
24
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000025 SBWatchpoint ();
Johnny Chen092bd152011-09-27 01:19:20 +000026
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000027 SBWatchpoint (const lldb::SBWatchpoint &rhs);
Johnny Chen092bd152011-09-27 01:19:20 +000028
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000029 ~SBWatchpoint ();
Johnny Chen092bd152011-09-27 01:19:20 +000030
Johnny Chen092bd152011-09-27 01:19:20 +000031 bool
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000032 IsValid();
Johnny Chen092bd152011-09-27 01:19:20 +000033
Johnny Chen41a55ef2011-10-14 19:15:48 +000034 SBError
35 GetError();
36
37 watch_id_t
38 GetID ();
39
Johnny Chen092bd152011-09-27 01:19:20 +000040 %feature("docstring", "
41 //------------------------------------------------------------------
42 /// With -1 representing an invalid hardware index.
43 //------------------------------------------------------------------
44 ") GetHardwareIndex;
45 int32_t
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000046 GetHardwareIndex ();
Johnny Chen092bd152011-09-27 01:19:20 +000047
48 lldb::addr_t
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000049 GetWatchAddress ();
Johnny Chen092bd152011-09-27 01:19:20 +000050
51 size_t
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000052 GetWatchSize();
Johnny Chen092bd152011-09-27 01:19:20 +000053
54 void
55 SetEnabled(bool enabled);
56
57 bool
58 IsEnabled ();
59
60 uint32_t
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000061 GetHitCount ();
Johnny Chen092bd152011-09-27 01:19:20 +000062
63 uint32_t
64 GetIgnoreCount ();
65
66 void
67 SetIgnoreCount (uint32_t n);
68
Johnny Chen712a6282011-10-17 18:58:00 +000069 const char *
70 GetCondition ();
71
72 void
73 SetCondition (const char *condition);
74
Johnny Chen092bd152011-09-27 01:19:20 +000075 bool
76 GetDescription (lldb::SBStream &description, DescriptionLevel level);
77};
78
79} // namespace lldb