SBBreakpointLocation.h revision 54e7afa84d945f9137f9372ecde432f9e1a702fc
1//===-- SBBreakpointLocation.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_SBBreakpointLocation_h_ 11#define LLDB_SBBreakpointLocation_h_ 12 13#include "lldb/API/SBDefines.h" 14#include "lldb/API/SBBreakpoint.h" 15 16namespace lldb { 17 18class SBBreakpointLocation 19{ 20public: 21 22 SBBreakpointLocation (); 23 24 ~SBBreakpointLocation (); 25 26 bool 27 IsValid() const; 28 29 lldb::addr_t 30 GetLoadAddress (); 31 32 void 33 SetEnabled(bool enabled); 34 35 bool 36 IsEnabled (); 37 38 uint32_t 39 GetIgnoreCount (); 40 41 void 42 SetIgnoreCount (uint32_t n); 43 44 void 45 SetThreadID (lldb::tid_t sb_thread_id); 46 47 lldb::tid_t 48 GetThreadID (); 49 50 void 51 SetThreadIndex (uint32_t index); 52 53 uint32_t 54 GetThreadIndex() const; 55 56 void 57 SetThreadName (const char *thread_name); 58 59 const char * 60 GetThreadName () const; 61 62 void 63 SetQueueName (const char *queue_name); 64 65 const char * 66 GetQueueName () const; 67 68 bool 69 IsResolved (); 70 71 void 72 GetDescription (FILE *f, const char *description_level); 73 74 SBBreakpoint 75 GetBreakpoint (); 76 77private: 78 friend class SBBreakpoint; 79 80 SBBreakpointLocation (const lldb::BreakpointLocationSP &break_loc_sp); 81 82 void 83 SetLocation (const lldb::BreakpointLocationSP &break_loc_sp); 84 85 lldb::BreakpointLocationSP m_opaque_sp; 86 87}; 88 89} // namespace lldb 90 91#endif // LLDB_SBBreakpointLocation_h_ 92