Lines Matching refs:brake

102 		phpdbg_breakbase_t *brake;  in phpdbg_reset_breakpoints()  local
104 ZEND_HASH_FOREACH_PTR(table, brake) { in phpdbg_reset_breakpoints()
105 brake->hits = 0; in phpdbg_reset_breakpoints()
130 phpdbg_breakbase_t *brake; in phpdbg_export_breakpoints_to_string() local
132 ZEND_HASH_FOREACH_PTR(table, brake) { in phpdbg_export_breakpoints_to_string()
133 if (brake->id == id) { in phpdbg_export_breakpoints_to_string()
136 switch (brake->type) { in phpdbg_export_breakpoints_to_string()
138 …ename = php_addcslashes_str(((phpdbg_breakfile_t*)brake)->filename, strlen(((phpdbg_breakfile_t*)b… in phpdbg_export_breakpoints_to_string()
142 ((phpdbg_breakfile_t*)brake)->line); in phpdbg_export_breakpoints_to_string()
149 ((phpdbg_breaksymbol_t*)brake)->symbol); in phpdbg_export_breakpoints_to_string()
155 ((phpdbg_breakmethod_t*)brake)->class_name, in phpdbg_export_breakpoints_to_string()
156 ((phpdbg_breakmethod_t*)brake)->func_name); in phpdbg_export_breakpoints_to_string()
162 ((phpdbg_breakopline_t*)brake)->class_name, in phpdbg_export_breakpoints_to_string()
163 ((phpdbg_breakopline_t*)brake)->func_name, in phpdbg_export_breakpoints_to_string()
164 ((phpdbg_breakopline_t*)brake)->opline_num); in phpdbg_export_breakpoints_to_string()
170 ((phpdbg_breakopline_t*)brake)->func_name, in phpdbg_export_breakpoints_to_string()
171 ((phpdbg_breakopline_t*)brake)->opline_num); in phpdbg_export_breakpoints_to_string()
175 …e = php_addcslashes_str(((phpdbg_breakopline_t*)brake)->class_name, strlen(((phpdbg_breakopline_t*… in phpdbg_export_breakpoints_to_string()
179 ((phpdbg_breakopline_t*)brake)->opline_num); in phpdbg_export_breakpoints_to_string()
186 ((phpdbg_breakop_t*)brake)->name); in phpdbg_export_breakpoints_to_string()
190 phpdbg_breakcond_t *conditional = (phpdbg_breakcond_t*) brake; in phpdbg_export_breakpoints_to_string()
355 phpdbg_breakfile_t *brake, new_brake; in phpdbg_resolve_pending_file_break_ex() local
366 ZEND_HASH_FOREACH_PTR(fileht, brake) { in phpdbg_resolve_pending_file_break_ex()
367 new_brake = *brake; in phpdbg_resolve_pending_file_break_ex()
369 PHPDBG_BREAK_UNMAPPING(brake->id); in phpdbg_resolve_pending_file_break_ex()
371 if (zend_hash_index_add_mem(master, brake->line, &new_brake, sizeof(phpdbg_breakfile_t))) { in phpdbg_resolve_pending_file_break_ex()
372 PHPDBG_BREAK_MAPPING(brake->id, master); in phpdbg_resolve_pending_file_break_ex()
501 PHPDBG_API int phpdbg_resolve_op_array_break(phpdbg_breakopline_t *brake, zend_op_array *op_array) … in phpdbg_resolve_op_array_break() argument
504 if (op_array->last <= brake->opline_num) { in phpdbg_resolve_op_array_break()
505 if (brake->class_name == NULL) { in phpdbg_resolve_op_array_break()
506 …unction %s (breaking at opline %ld impossible)", op_array->last, brake->func_name, brake->opline_n… in phpdbg_resolve_op_array_break()
507 } else if (brake->func_name == NULL) { in phpdbg_resolve_op_array_break()
508 …n file %s (breaking at opline %ld impossible)", op_array->last, brake->class_name, brake->opline_n… in phpdbg_resolve_op_array_break()
510 … (breaking at opline %ld impossible)", op_array->last, brake->class_name, brake->func_name, brake-… in phpdbg_resolve_op_array_break()
518 opline_break.id = brake->id; in phpdbg_resolve_op_array_break()
519 opline_break.opline = brake->opline = (zend_ulong)(op_array->opcodes + brake->opline_num); in phpdbg_resolve_op_array_break()
521 opline_break.base = brake; in phpdbg_resolve_op_array_break()
541 phpdbg_breakopline_t *brake; in phpdbg_resolve_op_array_breaks() local
555 ZEND_HASH_FOREACH_PTR(oplines_table, brake) { in phpdbg_resolve_op_array_breaks()
556 if (phpdbg_resolve_op_array_break(brake, op_array) == SUCCESS) { in phpdbg_resolve_op_array_breaks()
564 brake->class_name ? brake->class_name : "", in phpdbg_resolve_op_array_breaks()
565 brake->class_name && brake->func_name ? "::" : "", in phpdbg_resolve_op_array_breaks()
566 brake->func_name ? brake->func_name : "", in phpdbg_resolve_op_array_breaks()
567 brake->opline_num, in phpdbg_resolve_op_array_breaks()
827 static inline void phpdbg_create_conditional_break(phpdbg_breakcond_t *brake, const phpdbg_param_t … in phpdbg_create_conditional_break() argument
886brake = zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_COND], hash, &new_break, sizeof(phpd… in phpdbg_create_conditional_break()
888 …=\"%s\" ptr=\"%p\"", "Conditional breakpoint #%d added %s/%p", brake->id, brake->code, brake->ops); in phpdbg_create_conditional_break()
936 phpdbg_breakbase_t *brake; in phpdbg_find_breakpoint_file() local
947 …if (EG(current_execute_data) && (brake = zend_hash_index_find_ptr(breaks, EG(current_execute_data)… in phpdbg_find_breakpoint_file()
948 return brake; in phpdbg_find_breakpoint_file()
970 phpdbg_breakbase_t *brake; in phpdbg_find_breakpoint_symbol() local
973 brake = zend_hash_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], fname); in phpdbg_find_breakpoint_symbol()
976 return brake; in phpdbg_find_breakpoint_symbol()
985 phpdbg_breakbase_t *brake = NULL; in phpdbg_find_breakpoint_method() local
991 brake = zend_hash_find_ptr(class_table, lcname); in phpdbg_find_breakpoint_method()
997 return brake; in phpdbg_find_breakpoint_method()
1002 phpdbg_breakline_t *brake; in phpdbg_find_breakpoint_opline() local
1004 …if ((brake = zend_hash_index_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], (zend_ulong) opline)) &&… in phpdbg_find_breakpoint_opline()
1005 return (phpdbg_breakbase_t *)brake->base; in phpdbg_find_breakpoint_opline()
1008 return (phpdbg_breakbase_t *) brake; in phpdbg_find_breakpoint_opline()
1192 phpdbg_breakbase_t *brake; in phpdbg_delete_breakpoint() local
1196 if ((brake = phpdbg_find_breakbase_ex(num, &table, &numkey, &strkey))) { in phpdbg_delete_breakpoint()
1197 int type = brake->type; in phpdbg_delete_breakpoint()
1205 name = estrdup(brake->name); in phpdbg_delete_breakpoint()
1208 PHPDBG_G(flags) &= ~(1<<(brake->type+1)); in phpdbg_delete_breakpoint()
1215 PHPDBG_G(flags) &= ~(1<<(brake->type+1)); in phpdbg_delete_breakpoint()
1227 … zend_hash_index_del(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], ((phpdbg_breakopline_t *) brake)->opline); in phpdbg_delete_breakpoint()
1272 PHPDBG_API void phpdbg_hit_breakpoint(phpdbg_breakbase_t *brake, zend_bool output) /* {{{ */ in phpdbg_hit_breakpoint() argument
1274 brake->hits++; in phpdbg_hit_breakpoint()
1277 phpdbg_print_breakpoint(brake); in phpdbg_hit_breakpoint()
1281 PHPDBG_API void phpdbg_print_breakpoint(phpdbg_breakbase_t *brake) /* {{{ */ in phpdbg_print_breakpoint() argument
1283 if (!brake) in phpdbg_print_breakpoint()
1286 switch (brake->type) { in phpdbg_print_breakpoint()
1289 ((phpdbg_breakfile_t*)brake)->id, in phpdbg_print_breakpoint()
1290 ((phpdbg_breakfile_t*)brake)->filename, in phpdbg_print_breakpoint()
1291 ((phpdbg_breakfile_t*)brake)->line, in phpdbg_print_breakpoint()
1292 ((phpdbg_breakfile_t*)brake)->hits); in phpdbg_print_breakpoint()
1297 ((phpdbg_breaksymbol_t*)brake)->id, in phpdbg_print_breakpoint()
1298 ((phpdbg_breaksymbol_t*)brake)->symbol, in phpdbg_print_breakpoint()
1301 ((phpdbg_breakfile_t*)brake)->hits); in phpdbg_print_breakpoint()
1306 ((phpdbg_breakline_t*)brake)->id, in phpdbg_print_breakpoint()
1307 ((phpdbg_breakline_t*)brake)->opline, in phpdbg_print_breakpoint()
1310 ((phpdbg_breakline_t*)brake)->hits); in phpdbg_print_breakpoint()
1315 ((phpdbg_breakopline_t*)brake)->id, in phpdbg_print_breakpoint()
1316 ((phpdbg_breakopline_t*)brake)->class_name, in phpdbg_print_breakpoint()
1317 ((phpdbg_breakopline_t*)brake)->func_name, in phpdbg_print_breakpoint()
1318 ((phpdbg_breakopline_t*)brake)->opline_num, in phpdbg_print_breakpoint()
1321 ((phpdbg_breakopline_t*)brake)->hits); in phpdbg_print_breakpoint()
1326 ((phpdbg_breakopline_t*)brake)->id, in phpdbg_print_breakpoint()
1327 ((phpdbg_breakopline_t*)brake)->func_name, in phpdbg_print_breakpoint()
1328 ((phpdbg_breakopline_t*)brake)->opline_num, in phpdbg_print_breakpoint()
1331 ((phpdbg_breakopline_t*)brake)->hits); in phpdbg_print_breakpoint()
1336 ((phpdbg_breakopline_t*)brake)->id, in phpdbg_print_breakpoint()
1337 ((phpdbg_breakopline_t*)brake)->opline_num, in phpdbg_print_breakpoint()
1340 ((phpdbg_breakopline_t*)brake)->hits); in phpdbg_print_breakpoint()
1345 ((phpdbg_breakop_t*)brake)->id, in phpdbg_print_breakpoint()
1346 ((phpdbg_breakop_t*)brake)->name, in phpdbg_print_breakpoint()
1349 ((phpdbg_breakop_t*)brake)->hits); in phpdbg_print_breakpoint()
1354 ((phpdbg_breakmethod_t*)brake)->id, in phpdbg_print_breakpoint()
1355 ((phpdbg_breakmethod_t*)brake)->class_name, in phpdbg_print_breakpoint()
1356 ((phpdbg_breakmethod_t*)brake)->func_name, in phpdbg_print_breakpoint()
1359 ((phpdbg_breakmethod_t*)brake)->hits); in phpdbg_print_breakpoint()
1363 if (((phpdbg_breakcond_t*)brake)->paramed) { in phpdbg_print_breakpoint()
1366 ((phpdbg_breakcond_t*)brake)->id, in phpdbg_print_breakpoint()
1367 phpdbg_param_tostring(&((phpdbg_breakcond_t*)brake)->param, &param), in phpdbg_print_breakpoint()
1368 ((phpdbg_breakcond_t*)brake)->code, in phpdbg_print_breakpoint()
1371 ((phpdbg_breakcond_t*)brake)->hits); in phpdbg_print_breakpoint()
1376 ((phpdbg_breakcond_t*)brake)->id, in phpdbg_print_breakpoint()
1377 ((phpdbg_breakcond_t*)brake)->code, in phpdbg_print_breakpoint()
1380 ((phpdbg_breakcond_t*)brake)->hits); in phpdbg_print_breakpoint()
1396 phpdbg_breakbase_t *brake = phpdbg_find_breakbase(id); in phpdbg_enable_breakpoint() local
1398 if (brake) { in phpdbg_enable_breakpoint()
1399 brake->disabled = 0; in phpdbg_enable_breakpoint()
1405 phpdbg_breakbase_t *brake = phpdbg_find_breakbase(id); in phpdbg_disable_breakpoint() local
1407 if (brake) { in phpdbg_disable_breakpoint()
1408 brake->disabled = 1; in phpdbg_disable_breakpoint()
1433 phpdbg_breakbase_t *brake; in phpdbg_find_breakbase_ex() local
1435 ZEND_HASH_FOREACH_KEY_PTR(*table, *numkey, *strkey, brake) { in phpdbg_find_breakbase_ex()
1436 if (brake->id == id) { in phpdbg_find_breakbase_ex()
1437 return brake; in phpdbg_find_breakbase_ex()
1451 phpdbg_breaksymbol_t *brake; in phpdbg_print_breakpoints() local
1455 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], brake) { in phpdbg_print_breakpoints()
1457 brake->id, brake->symbol, in phpdbg_print_breakpoints()
1458 ((phpdbg_breakbase_t *) brake)->disabled ? " [disabled]" : ""); in phpdbg_print_breakpoints()
1468 phpdbg_breakmethod_t *brake; in phpdbg_print_breakpoints() local
1470 ZEND_HASH_FOREACH_PTR(class_table, brake) { in phpdbg_print_breakpoints()
1472 brake->id, brake->class_name, brake->func_name, in phpdbg_print_breakpoints()
1473 ((phpdbg_breakbase_t *) brake)->disabled ? " [disabled]" : ""); in phpdbg_print_breakpoints()
1484 phpdbg_breakfile_t *brake; in phpdbg_print_breakpoints() local
1486 ZEND_HASH_FOREACH_PTR(points, brake) { in phpdbg_print_breakpoints()
1488 brake->id, brake->filename, brake->line, in phpdbg_print_breakpoints()
1489 ((phpdbg_breakbase_t *) brake)->disabled ? " [disabled]" : ""); in phpdbg_print_breakpoints()
1498 phpdbg_breakfile_t *brake; in phpdbg_print_breakpoints() local
1500 ZEND_HASH_FOREACH_PTR(points, brake) { in phpdbg_print_breakpoints()
1502 brake->id, brake->filename, brake->line, in phpdbg_print_breakpoints()
1503 ((phpdbg_breakbase_t *) brake)->disabled ? " [disabled]" : ""); in phpdbg_print_breakpoints()
1509 phpdbg_breakline_t *brake; in phpdbg_print_breakpoints() local
1513 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], brake) { in phpdbg_print_breakpoints()
1515 switch (brake->type) { in phpdbg_print_breakpoints()
1526 if (brake->type == PHPDBG_BREAK_METHOD_OPLINE) { in phpdbg_print_breakpoints()
1528 } else if (brake->type == PHPDBG_BREAK_FUNCTION_OPLINE) { in phpdbg_print_breakpoints()
1530 } else if (brake->type == PHPDBG_BREAK_FILE_OPLINE) { in phpdbg_print_breakpoints()
1535 brake->id, brake->opline, type, in phpdbg_print_breakpoints()
1536 ((phpdbg_breakbase_t *) brake)->disabled ? " [disabled]" : ""); in phpdbg_print_breakpoints()
1541 brake->id, brake->opline, in phpdbg_print_breakpoints()
1542 ((phpdbg_breakbase_t *) brake)->disabled ? " [disabled]" : ""); in phpdbg_print_breakpoints()
1555 phpdbg_breakopline_t *brake; in phpdbg_print_breakpoints() local
1557 ZEND_HASH_FOREACH_PTR(method_table, brake) { in phpdbg_print_breakpoints()
1559 brake->id, brake->class_name, brake->func_name, brake->opline_num, in phpdbg_print_breakpoints()
1560 ((phpdbg_breakbase_t *) brake)->disabled ? " [disabled]" : ""); in phpdbg_print_breakpoints()
1572 phpdbg_breakopline_t *brake; in phpdbg_print_breakpoints() local
1574 ZEND_HASH_FOREACH_PTR(function_table, brake) { in phpdbg_print_breakpoints()
1576 brake->id, brake->func_name, brake->opline_num, in phpdbg_print_breakpoints()
1577 ((phpdbg_breakbase_t *) brake)->disabled ? " [disabled]" : ""); in phpdbg_print_breakpoints()
1588 phpdbg_breakopline_t *brake; in phpdbg_print_breakpoints() local
1590 ZEND_HASH_FOREACH_PTR(file_table, brake) { in phpdbg_print_breakpoints()
1592 brake->id, brake->class_name, brake->opline_num, in phpdbg_print_breakpoints()
1593 ((phpdbg_breakbase_t *) brake)->disabled ? " [disabled]" : ""); in phpdbg_print_breakpoints()
1599 phpdbg_breakcond_t *brake; in phpdbg_print_breakpoints() local
1603 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_COND], brake) { in phpdbg_print_breakpoints()
1604 if (brake->paramed) { in phpdbg_print_breakpoints()
1605 switch (brake->param.type) { in phpdbg_print_breakpoints()
1608 brake->id, brake->param.str, brake->code, in phpdbg_print_breakpoints()
1609 ((phpdbg_breakbase_t *) brake)->disabled ? " [disabled]" : ""); in phpdbg_print_breakpoints()
1614 brake->id, brake->param.str, brake->param.num, brake->code, in phpdbg_print_breakpoints()
1615 ((phpdbg_breakbase_t *) brake)->disabled ? " [disabled]" : ""); in phpdbg_print_breakpoints()
1620 brake->id, brake->param.method.class, brake->param.method.name, brake->code, in phpdbg_print_breakpoints()
1621 ((phpdbg_breakbase_t*)brake)->disabled ? " [disabled]" : ""); in phpdbg_print_breakpoints()
1626brake->id, brake->param.method.class, brake->param.method.name, brake->param.num, brake->code, in phpdbg_print_breakpoints()
1627 ((phpdbg_breakbase_t *) brake)->disabled ? " [disabled]" : ""); in phpdbg_print_breakpoints()
1632 brake->id, brake->param.file.name, brake->param.file.line, brake->code, in phpdbg_print_breakpoints()
1633 ((phpdbg_breakbase_t *) brake)->disabled ? " [disabled]" : ""); in phpdbg_print_breakpoints()
1638 brake->id, brake->param.addr, brake->code, in phpdbg_print_breakpoints()
1639 ((phpdbg_breakbase_t *) brake)->disabled ? " [disabled]" : ""); in phpdbg_print_breakpoints()
1648 brake->id, brake->code, in phpdbg_print_breakpoints()
1649 ((phpdbg_breakbase_t *) brake)->disabled ? " [disabled]" : ""); in phpdbg_print_breakpoints()
1655 phpdbg_breakop_t *brake; in phpdbg_print_breakpoints() local
1659 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE], brake) { in phpdbg_print_breakpoints()
1661 brake->id, brake->name, in phpdbg_print_breakpoints()
1662 ((phpdbg_breakbase_t *) brake)->disabled ? " [disabled]" : ""); in phpdbg_print_breakpoints()