Qore Programming Language Reference Manual  0.8.13.2
QC_Breakpoint.dox.h
1 namespace Qore {
4 
26 class Breakpoint {
27 
28 public:
30 /***
31  */
32 nothing addThreadId(int tid);
33 
34 public:
36 /***
37  * @param new_pgm Program to be assigned
38  */
39 nothing assignProgram(ProgramControl pgm);
40 
41 public:
43 /***
44  */
45 nothing assignStatement(int statementId);
46 
47 public:
49 /***
50  */
51 nothing clearThreadIds();
52 
53 public:
55 /***
56  */
57  constructor();
58 
59 public:
61 /***/
62  copy();
63 
64 public:
66 /***
67  */
68  destructor();
69 
70 public:
72 
76 int getBreakpointId();
77 
78 public:
80 /***
81  */
82 bool getEnabled();
83 
84 public:
86 /***/
87 int getPolicy();
88 
89 public:
91 
101 
102 public:
104 /*** @see @ref Qore::Program::resolveStatementId() "Program::resolveStatementId()"
105  */
107 
108 public:
110 /***
111  */
113 
114 public:
116 /***
117  */
118 bool isThreadId(softint tid);
119 
120 public:
122 /***
123  */
124 nothing removeThreadId(int tid);
125 
126 public:
128 /***
129  */
130 nothing setEnabled(bool enabled);
131 
132 public:
134 
136 nothing setPolicy(softint policy);
137 
138 public:
140 /***
141  */
142 nothing setThreadIds(softlist tidList);
143 
144 public:
146 /***
147  */
148 nothing unassignProgram();
149 
150 public:
152 /***
153  */
154 nothing unassignStatement(int statementId);
155 
156 public:
158 
161 static Breakpoint resolveBreakpointId(int breakpointId);
162 };
170 
172  const BreakpointPolicyAccept = BKP_PO_ACCEPT;
174  const BreakpointPolicyNone = BKP_PO_NONE;
176  const BreakpointPolicyReject = BKP_PO_REJECT;
178 };
nothing assignProgram(ProgramControl pgm)
Assign Program to breakpoint.
copy()
Creates copy of breakpoint object.
bool getEnabled()
Get enabled state of breakpoint.
nothing setEnabled(bool enabled)
Set enabled state to breakpoint.
const BreakpointPolicyNone
Thread list is ignored.
Definition: QC_Breakpoint.dox.h:174
const BreakpointPolicyReject
Consider all thread except those enumerated in thread list.
Definition: QC_Breakpoint.dox.h:176
static Breakpoint resolveBreakpointId(int breakpointId)
Get instance of breakpoint id.
nothing removeThreadId(int tid)
Remove thread ID from the list.
list getStatementIds()
Get list of statements.
nothing unassignProgram()
Unassign Program from breakpoint and deletes all statement references.
constructor()
Creates the breakpoint object with notification functions without any functionality.
list getThreadIds()
Get list of the thread IDs.
list list(...)
Returns an untyped list of the arguments passed at the top level.
The ProgramControl class provides safe information about a Qore program.
Definition: QC_ProgramControl.dox.h:41
nothing addThreadId(int tid)
Add thread ID to the list.
int getBreakpointId()
Get breakpoint id.
ProgramControl getProgram()
Get ProgramControl assigned to the breakpoint.
nothing setPolicy(softint policy)
Defines policy how thread list is evaluated. See Breakpoint Policy Constants.
int getPolicy()
Get policy how thread list is evaluated. See Breakpoint Policy Constants.
nothing clearThreadIds()
Clear list of the thread IDs.
const BreakpointPolicyAccept
Consider only threads enumerated in thread list.
Definition: QC_Breakpoint.dox.h:172
Breakpoint class supports breakpoint setting for particular Qore ProgramControl when debugging...
Definition: QC_Breakpoint.dox.h:26
nothing unassignStatement(int statementId)
Unassign breakpoint from statement.
nothing assignStatement(int statementId)
Assign breakpoint to a statement.
bool isThreadId(softint tid)
Check if thread is ID in list.
nothing setThreadIds(softlist tidList)
Set list of the thread IDs.
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
destructor()
Unlinks from Breakpoint object and dereferences it.