SBWatchpoint.h revision 3f883496e92fce5011f6bf585af3ac6d1cddb64f
1//===-- SBWatchpoint.h ----------------------------------*- 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#ifndef LLDB_SBWatchpoint_h_ 11#define LLDB_SBWatchpoint_h_ 12 13#include "lldb/API/SBDefines.h" 14 15namespace lldb { 16 17class SBWatchpoint 18{ 19public: 20 21 SBWatchpoint (); 22 23 SBWatchpoint (const lldb::SBWatchpoint &rhs); 24 25 SBWatchpoint (const lldb::WatchpointSP &wp_sp); 26 27 ~SBWatchpoint (); 28 29 const lldb::SBWatchpoint & 30 operator = (const lldb::SBWatchpoint &rhs); 31 32 bool 33 IsValid() const; 34 35 watch_id_t 36 GetID (); 37 38 /// With -1 representing an invalid hardware index. 39 int32_t 40 GetHardwareIndex (); 41 42 lldb::addr_t 43 GetWatchAddress (); 44 45 size_t 46 GetWatchSize(); 47 48 void 49 SetEnabled(bool enabled); 50 51 bool 52 IsEnabled (); 53 54 uint32_t 55 GetHitCount (); 56 57 uint32_t 58 GetIgnoreCount (); 59 60 void 61 SetIgnoreCount (uint32_t n); 62 63 const char * 64 GetCondition (); 65 66 void 67 SetCondition (const char *condition); 68 69 bool 70 GetDescription (lldb::SBStream &description, DescriptionLevel level); 71 72 void 73 Clear (); 74 75 lldb::WatchpointSP 76 GetSP () const; 77 78 void 79 SetSP (const lldb::WatchpointSP &sp); 80 81private: 82 friend class SBTarget; 83 friend class SBValue; 84 85 86 lldb::WatchpointSP m_opaque_sp; 87 88}; 89 90} // namespace lldb 91 92#endif // LLDB_SBWatchpoint_h_ 93