blob: 58a15e7d8d53e606746ed2cfccc8efce58be4a25 [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
31 watch_id_t
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000032 GetID ();
Johnny Chen092bd152011-09-27 01:19:20 +000033
34 bool
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000035 IsValid();
Johnny Chen092bd152011-09-27 01:19:20 +000036
37 %feature("docstring", "
38 //------------------------------------------------------------------
39 /// With -1 representing an invalid hardware index.
40 //------------------------------------------------------------------
41 ") GetHardwareIndex;
42 int32_t
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000043 GetHardwareIndex ();
Johnny Chen092bd152011-09-27 01:19:20 +000044
45 lldb::addr_t
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000046 GetWatchAddress ();
Johnny Chen092bd152011-09-27 01:19:20 +000047
48 size_t
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000049 GetWatchSize();
Johnny Chen092bd152011-09-27 01:19:20 +000050
51 void
52 SetEnabled(bool enabled);
53
54 bool
55 IsEnabled ();
56
57 uint32_t
Greg Clayton1fa6b3d2011-10-13 18:08:26 +000058 GetHitCount ();
Johnny Chen092bd152011-09-27 01:19:20 +000059
60 uint32_t
61 GetIgnoreCount ();
62
63 void
64 SetIgnoreCount (uint32_t n);
65
66 bool
67 GetDescription (lldb::SBStream &description, DescriptionLevel level);
68};
69
70} // namespace lldb