1 //===-- SWIG Interface for SBWatchpoint -----------------*- C++ -*-===// 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 for a specific target program. 14 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. 17 18 See also SBTarget.watchpoint_iter() for example usage of iterating through the 19 watchpoints of the target." 20 ) SBWatchpoint; 21 class SBWatchpoint 22 { 23 public: 24 25 SBWatchpoint (); 26 27 SBWatchpoint (const lldb::SBWatchpoint &rhs); 28 29 ~SBWatchpoint (); 30 31 bool 32 IsValid(); 33 34 SBError 35 GetError(); 36 37 watch_id_t 38 GetID (); 39 40 %feature("docstring", " 41 //------------------------------------------------------------------ 42 /// With -1 representing an invalid hardware index. 43 //------------------------------------------------------------------ 44 ") GetHardwareIndex; 45 int32_t 46 GetHardwareIndex (); 47 48 lldb::addr_t 49 GetWatchAddress (); 50 51 size_t 52 GetWatchSize(); 53 54 void 55 SetEnabled(bool enabled); 56 57 bool 58 IsEnabled (); 59 60 uint32_t 61 GetHitCount (); 62 63 uint32_t 64 GetIgnoreCount (); 65 66 void 67 SetIgnoreCount (uint32_t n); 68 69 %feature("docstring", " 70 //------------------------------------------------------------------ 71 /// Get the condition expression for the watchpoint. 72 //------------------------------------------------------------------ 73 ") GetCondition; 74 const char * 75 GetCondition (); 76 77 %feature("docstring", " 78 //-------------------------------------------------------------------------- 79 /// The watchpoint stops only if the condition expression evaluates to true. 80 //-------------------------------------------------------------------------- 81 ") SetCondition; 82 void 83 SetCondition (const char *condition); 84 85 bool 86 GetDescription (lldb::SBStream &description, DescriptionLevel level); 87 88 static bool 89 EventIsWatchpointEvent (const lldb::SBEvent &event); 90 91 static lldb::WatchpointEventType 92 GetWatchpointEventTypeFromEvent (const lldb::SBEvent& event); 93 94 static lldb::SBWatchpoint 95 GetWatchpointFromEvent (const lldb::SBEvent& event); 96 97 }; 98 99 } // namespace lldb 100