1 //===-- SBBreakpointLocation.h ----------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_SBBreakpointLocation_h_
10 #define LLDB_SBBreakpointLocation_h_
12 #include "lldb/API/SBBreakpoint.h"
13 #include "lldb/API/SBDefines.h"
17 class LLDB_API SBBreakpointLocation {
19 SBBreakpointLocation();
21 SBBreakpointLocation(const lldb::SBBreakpointLocation &rhs);
23 ~SBBreakpointLocation();
25 const lldb::SBBreakpointLocation &
26 operator=(const lldb::SBBreakpointLocation &rhs);
30 explicit operator bool() const;
34 lldb::SBAddress GetAddress();
36 lldb::addr_t GetLoadAddress();
38 void SetEnabled(bool enabled);
42 uint32_t GetHitCount();
44 uint32_t GetIgnoreCount();
46 void SetIgnoreCount(uint32_t n);
48 void SetCondition(const char *condition);
50 const char *GetCondition();
52 void SetAutoContinue(bool auto_continue);
54 bool GetAutoContinue();
56 void SetScriptCallbackFunction(const char *callback_function_name);
58 SBError SetScriptCallbackBody(const char *script_body_text);
60 void SetCommandLineCommands(SBStringList &commands);
62 bool GetCommandLineCommands(SBStringList &commands);
64 void SetThreadID(lldb::tid_t sb_thread_id);
66 lldb::tid_t GetThreadID();
68 void SetThreadIndex(uint32_t index);
70 uint32_t GetThreadIndex() const;
72 void SetThreadName(const char *thread_name);
74 const char *GetThreadName() const;
76 void SetQueueName(const char *queue_name);
78 const char *GetQueueName() const;
82 bool GetDescription(lldb::SBStream &description, DescriptionLevel level);
84 SBBreakpoint GetBreakpoint();
86 SBBreakpointLocation(const lldb::BreakpointLocationSP &break_loc_sp);
89 friend class SBBreakpoint;
90 friend class SBBreakpointCallbackBaton;
92 void SetLocation(const lldb::BreakpointLocationSP &break_loc_sp);
93 BreakpointLocationSP GetSP() const;
95 lldb::BreakpointLocationWP m_opaque_wp;
100 #endif // LLDB_SBBreakpointLocation_h_