$darkmode
Qore Programming Language Reference Manual 1.19.2
QC_Breakpoint.dox.h
1 
3 namespace Qore {
5 
27 class Breakpoint {
28 
29 public:
31 /***
32  */
33 nothing addThreadId(int tid);
34 
35 public:
37 /***
38  * @param new_pgm Program to be assigned
39  */
41 
42 public:
44 /***
45  */
46 nothing assignStatement(int statementId);
47 
48 public:
50 /***
51  */
52 nothing clearThreadIds();
53 
54 public:
56 /***
57  */
59 
60 public:
62 /***/
63  copy();
64 
65 public:
67 /***
68  */
70 
71 public:
73 
78 
79 public:
81 /***
82  */
83 bool getEnabled();
84 
85 public:
87 /***/
88 int getPolicy();
89 
90 public:
92 
102 
103 public:
105 /*** @see @ref Qore::Program::resolveStatementId() "Program::resolveStatementId()"
106  */
107 list<int> getStatementIds();
108 
109 public:
111 /***
112  */
113 list<int> getThreadIds();
114 
115 public:
117 /***
118  */
119 bool isThreadId(softint tid);
120 
121 public:
123 /***
124  */
125 nothing removeThreadId(int tid);
126 
127 public:
129 /***
130  */
131 nothing setEnabled(bool enabled);
132 
133 public:
135 
137 nothing setPolicy(softint policy);
138 
139 public:
141 /***
142  */
143 nothing setThreadIds(softlist<softint> tidList);
144 
145 public:
147 /***
148  */
149 nothing unassignProgram();
150 
151 public:
153 /***
154  */
155 nothing unassignStatement(int statementId);
156 
157 public:
159 
162 static Breakpoint resolveBreakpointId(int breakpointId);
163 };
171 
173  const BreakpointPolicyAccept = BKP_PO_ACCEPT;
175  const BreakpointPolicyNone = BKP_PO_NONE;
177  const BreakpointPolicyReject = BKP_PO_REJECT;
179 }
Breakpoint class supports breakpoint setting for particular Qore ProgramControl when debugging.
Definition: QC_Breakpoint.dox.h:27
destructor()
Unlinks from Breakpoint object and dereferences it.
nothing unassignProgram()
Unassign Program from breakpoint and deletes all statement references.
list< int > getThreadIds()
Get list of the thread IDs.
constructor()
Creates the breakpoint object with notification functions without any functionality.
nothing setThreadIds(softlist< softint > tidList)
Set list of the thread IDs.
bool isThreadId(softint tid)
Check if thread is ID in list.
nothing unassignStatement(int statementId)
Unassign breakpoint from statement.
nothing assignProgram(ProgramControl pgm)
Assign Program to breakpoint.
int getBreakpointId()
Get breakpoint id.
ProgramControl getProgram()
Get ProgramControl assigned to the breakpoint.
nothing assignStatement(int statementId)
Assign breakpoint to a statement.
static Breakpoint resolveBreakpointId(int breakpointId)
Get instance of breakpoint id.
nothing addThreadId(int tid)
Add thread ID to the list.
nothing setPolicy(softint policy)
Defines policy how thread list is evaluated. See Breakpoint Policy Constants.
nothing setEnabled(bool enabled)
Set enabled state to breakpoint.
copy()
Creates copy of breakpoint object.
list< int > getStatementIds()
Get list of statements.
int getPolicy()
Get policy how thread list is evaluated. See Breakpoint Policy Constants.
nothing removeThreadId(int tid)
Remove thread ID from the list.
nothing clearThreadIds()
Clear list of the thread IDs.
bool getEnabled()
Get enabled state of breakpoint.
The ProgramControl class provides safe information about a Qore program.
Definition: QC_ProgramControl.dox.h:45
const BreakpointPolicyReject
Consider all thread except those enumerated in thread list.
Definition: QC_Breakpoint.dox.h:177
const BreakpointPolicyAccept
Consider only threads enumerated in thread list.
Definition: QC_Breakpoint.dox.h:173
const BreakpointPolicyNone
Thread list is ignored.
Definition: QC_Breakpoint.dox.h:175
Qore namespace.
Definition: QC_AbstractBidirectionalIterator.dox.h:2