1 //===-- SBBreakpointLocation.h ----------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLDB_SBBreakpointLocation_h_
11 #define LLDB_SBBreakpointLocation_h_
13 #include "lldb/API/SBBreakpoint.h"
14 #include "lldb/API/SBDefines.h"
18 class LLDB_API SBBreakpointLocation {
20 SBBreakpointLocation();
22 SBBreakpointLocation(const lldb::SBBreakpointLocation &rhs);
24 ~SBBreakpointLocation();
26 const lldb::SBBreakpointLocation &
27 operator=(const lldb::SBBreakpointLocation &rhs);
33 lldb::SBAddress GetAddress();
35 lldb::addr_t GetLoadAddress();
37 void SetEnabled(bool enabled);
41 uint32_t GetIgnoreCount();
43 void SetIgnoreCount(uint32_t n);
45 void SetCondition(const char *condition);
47 const char *GetCondition();
49 void SetScriptCallbackFunction(const char *callback_function_name);
51 SBError SetScriptCallbackBody(const char *script_body_text);
53 void SetThreadID(lldb::tid_t sb_thread_id);
55 lldb::tid_t GetThreadID();
57 void SetThreadIndex(uint32_t index);
59 uint32_t GetThreadIndex() const;
61 void SetThreadName(const char *thread_name);
63 const char *GetThreadName() const;
65 void SetQueueName(const char *queue_name);
67 const char *GetQueueName() const;
71 bool GetDescription(lldb::SBStream &description, DescriptionLevel level);
73 SBBreakpoint GetBreakpoint();
75 SBBreakpointLocation(const lldb::BreakpointLocationSP &break_loc_sp);
78 friend class SBBreakpoint;
80 void SetLocation(const lldb::BreakpointLocationSP &break_loc_sp);
81 BreakpointLocationSP GetSP() const;
83 lldb::BreakpointLocationWP m_opaque_wp;
88 #endif // LLDB_SBBreakpointLocation_h_