blob: 093a0e6d380d4d4f4be7da8f9b3bd114d984029a [file] [log] [blame]
Johnny Chen5de6a792011-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
32 bool
33 IsValid() const;
34
Jim Ingham1b040c12011-10-07 22:27:25 +000035 lldb::SBAddress
36 GetAddress();
37
Johnny Chen5de6a792011-07-18 21:30:21 +000038 lldb::addr_t
39 GetLoadAddress ();
40
41 void
42 SetEnabled(bool enabled);
43
44 bool
45 IsEnabled ();
46
47 uint32_t
48 GetIgnoreCount ();
49
50 void
51 SetIgnoreCount (uint32_t n);
52
Johnny Chen85ced802011-10-18 19:13:06 +000053 %feature("docstring", "
54 //--------------------------------------------------------------------------
55 /// The breakpoint location stops only if the condition expression evaluates
56 /// to true.
57 //--------------------------------------------------------------------------
58 ") SetCondition;
Johnny Chen5de6a792011-07-18 21:30:21 +000059 void
60 SetCondition (const char *condition);
61
Johnny Chen85ced802011-10-18 19:13:06 +000062 %feature("docstring", "
63 //------------------------------------------------------------------
64 /// Get the condition expression for the breakpoint location.
65 //------------------------------------------------------------------
66 ") GetCondition;
Johnny Chen5de6a792011-07-18 21:30:21 +000067 const char *
68 GetCondition ();
69
70 void
71 SetThreadID (lldb::tid_t sb_thread_id);
72
73 lldb::tid_t
74 GetThreadID ();
75
76 void
77 SetThreadIndex (uint32_t index);
78
79 uint32_t
80 GetThreadIndex() const;
81
82 void
83 SetThreadName (const char *thread_name);
84
85 const char *
86 GetThreadName () const;
87
88 void
89 SetQueueName (const char *queue_name);
90
91 const char *
92 GetQueueName () const;
93
94 bool
95 IsResolved ();
96
97 bool
98 GetDescription (lldb::SBStream &description, DescriptionLevel level);
99
100 SBBreakpoint
101 GetBreakpoint ();
102};
103
104} // namespace lldb