blob: 8c9b9c78246752689e4a752d43daaf276a41f4eb [file] [log] [blame]
Johnny Chen3cfd5e82011-07-18 21:30:21 +00001//===-- SWIG Interface for SBBreakpointLocation -----------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10namespace lldb {
11
12%feature("docstring",
13"Represents one unique instance (by address) of a logical breakpoint.
14
15A breakpoint location is defined by the breakpoint that produces it,
16and the address that resulted in this particular instantiation.
17Each breakpoint location has its settable options.
18
19SBBreakpoint contains SBBreakpointLocation(s). See docstring of SBBreakpoint
20for retrieval of an SBBreakpointLocation from an SBBreakpoint."
21) SBBreakpointLocation;
22class SBBreakpointLocation
23{
24public:
25
26 SBBreakpointLocation ();
27
28 SBBreakpointLocation (const lldb::SBBreakpointLocation &rhs);
29
30 ~SBBreakpointLocation ();
31
Jim Inghama80d1e82012-05-16 17:15:08 +000032 break_id_t
33 GetID ();
34
Johnny Chen3cfd5e82011-07-18 21:30:21 +000035 bool
36 IsValid() const;
37
Jim Ingham0e6d5112011-10-07 22:27:25 +000038 lldb::SBAddress
39 GetAddress();
40
Johnny Chen3cfd5e82011-07-18 21:30:21 +000041 lldb::addr_t
42 GetLoadAddress ();
43
44 void
45 SetEnabled(bool enabled);
46
47 bool
48 IsEnabled ();
49
50 uint32_t
51 GetIgnoreCount ();
52
53 void
54 SetIgnoreCount (uint32_t n);
55
Johnny Chena5dd2bb2011-10-18 19:13:06 +000056 %feature("docstring", "
57 //--------------------------------------------------------------------------
58 /// The breakpoint location stops only if the condition expression evaluates
59 /// to true.
60 //--------------------------------------------------------------------------
61 ") SetCondition;
Johnny Chen3cfd5e82011-07-18 21:30:21 +000062 void
63 SetCondition (const char *condition);
64
Johnny Chena5dd2bb2011-10-18 19:13:06 +000065 %feature("docstring", "
66 //------------------------------------------------------------------
67 /// Get the condition expression for the breakpoint location.
68 //------------------------------------------------------------------
69 ") GetCondition;
Johnny Chen3cfd5e82011-07-18 21:30:21 +000070 const char *
71 GetCondition ();
72
73 void
74 SetThreadID (lldb::tid_t sb_thread_id);
75
76 lldb::tid_t
77 GetThreadID ();
78
79 void
80 SetThreadIndex (uint32_t index);
81
82 uint32_t
83 GetThreadIndex() const;
84
85 void
86 SetThreadName (const char *thread_name);
87
88 const char *
89 GetThreadName () const;
90
91 void
92 SetQueueName (const char *queue_name);
93
94 const char *
95 GetQueueName () const;
96
97 bool
98 IsResolved ();
99
100 bool
101 GetDescription (lldb::SBStream &description, DescriptionLevel level);
102
103 SBBreakpoint
104 GetBreakpoint ();
105};
106
107} // namespace lldb