1 //===-- SBBreakpointName.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_SBBreakpointName_h_
11 #define LLDB_SBBreakpointName_h_
13 #include "lldb/API/SBDefines.h"
15 class SBBreakpointNameImpl;
19 class LLDB_API SBBreakpointName {
21 // typedef bool (*BreakpointHitCallback)(void *baton, SBProcess &process,
23 // lldb::SBBreakpointLocation &location);
27 SBBreakpointName(SBTarget &target, const char *name);
29 SBBreakpointName(SBBreakpoint &bkpt, const char *name);
31 SBBreakpointName(const lldb::SBBreakpointName &rhs);
35 const lldb::SBBreakpointName &operator=(const lldb::SBBreakpointName &rhs);
37 // Tests to see if the opaque breakpoint object in this object matches the
38 // opaque breakpoint object in "rhs".
39 bool operator==(const lldb::SBBreakpointName &rhs);
41 bool operator!=(const lldb::SBBreakpointName &rhs);
45 const char *GetName() const;
47 void SetEnabled(bool enable);
51 void SetOneShot(bool one_shot);
53 bool IsOneShot() const;
55 void SetIgnoreCount(uint32_t count);
57 uint32_t GetIgnoreCount() const;
59 void SetCondition(const char *condition);
61 const char *GetCondition();
63 void SetAutoContinue(bool auto_continue);
65 bool GetAutoContinue();
67 void SetThreadID(lldb::tid_t sb_thread_id);
69 lldb::tid_t GetThreadID();
71 void SetThreadIndex(uint32_t index);
73 uint32_t GetThreadIndex() const;
75 void SetThreadName(const char *thread_name);
77 const char *GetThreadName() const;
79 void SetQueueName(const char *queue_name);
81 const char *GetQueueName() const;
83 void SetCallback(SBBreakpointHitCallback callback, void *baton);
85 void SetScriptCallbackFunction(const char *callback_function_name);
87 void SetCommandLineCommands(SBStringList &commands);
89 bool GetCommandLineCommands(SBStringList &commands);
91 SBError SetScriptCallbackBody(const char *script_body_text);
93 const char *GetHelpString() const;
94 void SetHelpString(const char *help_string);
96 bool GetAllowList() const;
97 void SetAllowList(bool value);
99 bool GetAllowDelete();
100 void SetAllowDelete(bool value);
102 bool GetAllowDisable();
103 void SetAllowDisable(bool value);
105 bool GetDescription(lldb::SBStream &description);
108 friend class SBTarget;
110 lldb_private::BreakpointName *GetBreakpointName() const;
111 void UpdateName(lldb_private::BreakpointName &bp_name);
113 std::unique_ptr<SBBreakpointNameImpl> m_impl_up;
118 #endif // LLDB_SBBreakpointName_h_