Greg Clayton | 1fa6b3d | 2011-10-13 18:08:26 +0000 | [diff] [blame] | 1 | //===-- SWIG Interface for SBWatchpoint -----------------*- C++ -*-===// |
Johnny Chen | 092bd15 | 2011-09-27 01:19:20 +0000 | [diff] [blame] | 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 | namespace lldb { |
| 11 | |
| 12 | %feature("docstring", |
Johnny Chen | ecd4feb | 2011-10-14 00:42:25 +0000 | [diff] [blame^] | 13 | "Represents an instance of watchpoint for a specific target program. |
Johnny Chen | 092bd15 | 2011-09-27 01:19:20 +0000 | [diff] [blame] | 14 | |
Johnny Chen | ecd4feb | 2011-10-14 00:42:25 +0000 | [diff] [blame^] | 15 | A watchpoint is determined by the address and the byte size that resulted in |
| 16 | this particular instantiation. Each watchpoint has its settable options. |
Johnny Chen | 092bd15 | 2011-09-27 01:19:20 +0000 | [diff] [blame] | 17 | |
Johnny Chen | ecd4feb | 2011-10-14 00:42:25 +0000 | [diff] [blame^] | 18 | See also SBTarget.watchpoint_iter() for for example usage of iterating through |
| 19 | the watchpoints of the target." |
Greg Clayton | 1fa6b3d | 2011-10-13 18:08:26 +0000 | [diff] [blame] | 20 | ) SBWatchpoint; |
| 21 | class SBWatchpoint |
Johnny Chen | 092bd15 | 2011-09-27 01:19:20 +0000 | [diff] [blame] | 22 | { |
| 23 | public: |
| 24 | |
Greg Clayton | 1fa6b3d | 2011-10-13 18:08:26 +0000 | [diff] [blame] | 25 | SBWatchpoint (); |
Johnny Chen | 092bd15 | 2011-09-27 01:19:20 +0000 | [diff] [blame] | 26 | |
Greg Clayton | 1fa6b3d | 2011-10-13 18:08:26 +0000 | [diff] [blame] | 27 | SBWatchpoint (const lldb::SBWatchpoint &rhs); |
Johnny Chen | 092bd15 | 2011-09-27 01:19:20 +0000 | [diff] [blame] | 28 | |
Greg Clayton | 1fa6b3d | 2011-10-13 18:08:26 +0000 | [diff] [blame] | 29 | ~SBWatchpoint (); |
Johnny Chen | 092bd15 | 2011-09-27 01:19:20 +0000 | [diff] [blame] | 30 | |
| 31 | watch_id_t |
Greg Clayton | 1fa6b3d | 2011-10-13 18:08:26 +0000 | [diff] [blame] | 32 | GetID (); |
Johnny Chen | 092bd15 | 2011-09-27 01:19:20 +0000 | [diff] [blame] | 33 | |
| 34 | bool |
Greg Clayton | 1fa6b3d | 2011-10-13 18:08:26 +0000 | [diff] [blame] | 35 | IsValid(); |
Johnny Chen | 092bd15 | 2011-09-27 01:19:20 +0000 | [diff] [blame] | 36 | |
| 37 | %feature("docstring", " |
| 38 | //------------------------------------------------------------------ |
| 39 | /// With -1 representing an invalid hardware index. |
| 40 | //------------------------------------------------------------------ |
| 41 | ") GetHardwareIndex; |
| 42 | int32_t |
Greg Clayton | 1fa6b3d | 2011-10-13 18:08:26 +0000 | [diff] [blame] | 43 | GetHardwareIndex (); |
Johnny Chen | 092bd15 | 2011-09-27 01:19:20 +0000 | [diff] [blame] | 44 | |
| 45 | lldb::addr_t |
Greg Clayton | 1fa6b3d | 2011-10-13 18:08:26 +0000 | [diff] [blame] | 46 | GetWatchAddress (); |
Johnny Chen | 092bd15 | 2011-09-27 01:19:20 +0000 | [diff] [blame] | 47 | |
| 48 | size_t |
Greg Clayton | 1fa6b3d | 2011-10-13 18:08:26 +0000 | [diff] [blame] | 49 | GetWatchSize(); |
Johnny Chen | 092bd15 | 2011-09-27 01:19:20 +0000 | [diff] [blame] | 50 | |
| 51 | void |
| 52 | SetEnabled(bool enabled); |
| 53 | |
| 54 | bool |
| 55 | IsEnabled (); |
| 56 | |
| 57 | uint32_t |
Greg Clayton | 1fa6b3d | 2011-10-13 18:08:26 +0000 | [diff] [blame] | 58 | GetHitCount (); |
Johnny Chen | 092bd15 | 2011-09-27 01:19:20 +0000 | [diff] [blame] | 59 | |
| 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 |