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