LLDB mainline
SBBreakpointLocation.h
Go to the documentation of this file.
1//===-- SBBreakpointLocation.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_API_SBBREAKPOINTLOCATION_H
10#define LLDB_API_SBBREAKPOINTLOCATION_H
11
13#include "lldb/API/SBDefines.h"
14
15namespace lldb_private {
16namespace python {
17class SWIGBridge;
18}
19namespace lua {
20class SWIGBridge;
21}
22} // namespace lldb_private
23
24namespace lldb {
25
27public:
29
31
33
35 operator=(const lldb::SBBreakpointLocation &rhs);
36
37 break_id_t GetID();
38
39 explicit operator bool() const;
40
41 bool IsValid() const;
42
43 lldb::SBAddress GetAddress();
44
45 lldb::addr_t GetLoadAddress();
46
47 void SetEnabled(bool enabled);
48
49 bool IsEnabled();
50
51 uint32_t GetHitCount();
52
53 uint32_t GetIgnoreCount();
54
55 void SetIgnoreCount(uint32_t n);
56
57 void SetCondition(const char *condition);
58
59 const char *GetCondition();
60
61 void SetAutoContinue(bool auto_continue);
62
63 bool GetAutoContinue();
64
65#ifndef SWIG
66 void SetCallback(SBBreakpointHitCallback callback, void *baton);
67#endif
68
69 void SetScriptCallbackFunction(const char *callback_function_name);
70
71 SBError SetScriptCallbackFunction(const char *callback_function_name,
72 lldb::SBStructuredData &extra_args);
73
74 SBError SetScriptCallbackBody(const char *script_body_text);
75
76 void SetCommandLineCommands(lldb::SBStringList &commands);
77
78 bool GetCommandLineCommands(lldb::SBStringList &commands);
79
80 void SetThreadID(lldb::tid_t sb_thread_id);
81
82 lldb::tid_t GetThreadID();
83
84 void SetThreadIndex(uint32_t index);
85
86 uint32_t GetThreadIndex() const;
87
88 void SetThreadName(const char *thread_name);
89
90 const char *GetThreadName() const;
91
92 void SetQueueName(const char *queue_name);
93
94 const char *GetQueueName() const;
95
96 bool IsResolved();
97
98 bool GetDescription(lldb::SBStream &description, DescriptionLevel level);
99
100 SBBreakpoint GetBreakpoint();
101
102protected:
103 friend class lldb_private::python::SWIGBridge;
106
107private:
108 friend class SBBreakpoint;
110
111 void SetLocation(const lldb::BreakpointLocationSP &break_loc_sp);
112 BreakpointLocationSP GetSP() const;
113
115};
116
117} // namespace lldb
118
119#endif // LLDB_API_SBBREAKPOINTLOCATION_H
#define LLDB_API
Definition: SBDefines.h:28
lldb::BreakpointLocationWP m_opaque_wp
A class that represents a running process on the host machine.
Definition: SBAttachInfo.h:14
Definition: SBAddress.h:15
std::weak_ptr< lldb_private::BreakpointLocation > BreakpointLocationWP
Definition: lldb-forward.h:317
std::shared_ptr< lldb_private::BreakpointLocation > BreakpointLocationSP
Definition: lldb-forward.h:316
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
int32_t break_id_t
Definition: lldb-types.h:84
uint64_t addr_t
Definition: lldb-types.h:79
uint64_t tid_t
Definition: lldb-types.h:82