LLDB  mainline
SBBreakpointName.h
Go to the documentation of this file.
1 //===-- SBBreakpointName.h ------------------------------------------*- C++ -*-===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLDB_SBBreakpointName_h_
10 #define LLDB_SBBreakpointName_h_
11 
12 #include "lldb/API/SBDefines.h"
13 
15 
16 namespace lldb {
17 
19 public:
20 // typedef bool (*BreakpointHitCallback)(void *baton, SBProcess &process,
21 // SBThread &thread,
22 // lldb::SBBreakpointLocation &location);
23 
25 
26  SBBreakpointName(SBTarget &target, const char *name);
27 
28  SBBreakpointName(SBBreakpoint &bkpt, const char *name);
29 
31 
33 
34  const lldb::SBBreakpointName &operator=(const lldb::SBBreakpointName &rhs);
35 
36  // Tests to see if the opaque breakpoint object in this object matches the
37  // opaque breakpoint object in "rhs".
38  bool operator==(const lldb::SBBreakpointName &rhs);
39 
40  bool operator!=(const lldb::SBBreakpointName &rhs);
41 
42  explicit operator bool() const;
43 
44  bool IsValid() const;
45 
46  const char *GetName() const;
47 
48  void SetEnabled(bool enable);
49 
50  bool IsEnabled();
51 
52  void SetOneShot(bool one_shot);
53 
54  bool IsOneShot() const;
55 
56  void SetIgnoreCount(uint32_t count);
57 
58  uint32_t GetIgnoreCount() const;
59 
60  void SetCondition(const char *condition);
61 
62  const char *GetCondition();
63 
64  void SetAutoContinue(bool auto_continue);
65 
66  bool GetAutoContinue();
67 
68  void SetThreadID(lldb::tid_t sb_thread_id);
69 
70  lldb::tid_t GetThreadID();
71 
72  void SetThreadIndex(uint32_t index);
73 
74  uint32_t GetThreadIndex() const;
75 
76  void SetThreadName(const char *thread_name);
77 
78  const char *GetThreadName() const;
79 
80  void SetQueueName(const char *queue_name);
81 
82  const char *GetQueueName() const;
83 
84  void SetCallback(SBBreakpointHitCallback callback, void *baton);
85 
86  void SetScriptCallbackFunction(const char *callback_function_name);
87 
88  void SetCommandLineCommands(SBStringList &commands);
89 
90  bool GetCommandLineCommands(SBStringList &commands);
91 
92  SBError SetScriptCallbackBody(const char *script_body_text);
93 
94  const char *GetHelpString() const;
95  void SetHelpString(const char *help_string);
96 
97  bool GetAllowList() const;
98  void SetAllowList(bool value);
99 
100  bool GetAllowDelete();
101  void SetAllowDelete(bool value);
102 
103  bool GetAllowDisable();
104  void SetAllowDisable(bool value);
105 
106  bool GetDescription(lldb::SBStream &description);
107 
108 private:
109  friend class SBTarget;
110 
111  lldb_private::BreakpointName *GetBreakpointName() const;
112  void UpdateName(lldb_private::BreakpointName &bp_name);
113 
114  std::unique_ptr<SBBreakpointNameImpl> m_impl_up;
115 };
116 
117 } // namespace lldb
118 
119 #endif // LLDB_SBBreakpointName_h_
bool LLDB_API operator==(const SBAddress &lhs, const SBAddress &rhs)
Definition: SBAddress.cpp:66
bool(* SBBreakpointHitCallback)(void *baton, SBProcess &process, SBThread &thread, lldb::SBBreakpointLocation &location)
Definition: SBDefines.h:96
class LLDB_API SBBreakpointName
Definition: SBDefines.h:26
uint64_t tid_t
Definition: lldb-types.h:86
bool operator!=(const Address &lhs, const Address &rhs)
Definition: Address.cpp:979
#define LLDB_API
Definition: lldb-defines.h:23
Definition: SBAddress.h:15
class LLDB_API SBBreakpointNameImpl
Definition: SBDefines.h:27