Lines Matching refs:PHPDBG_G

47 	zend_hash_index_update_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP], id, table);  in _phpdbg_break_mapping()
53 zend_hash_index_del(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP], (id))
56 b.id = PHPDBG_G(bp_count)++; \
102 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP], table) { in phpdbg_reset_breakpoints()
126 if (zend_hash_num_elements(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP])) { in phpdbg_export_breakpoints_to_string()
127 …t", "count=\"%d\"", "Exporting %d breakpoints", zend_hash_num_elements(&PHPDBG_G(bp)[PHPDBG_BREAK_… in phpdbg_export_breakpoints_to_string()
130 ZEND_HASH_FOREACH_NUM_KEY_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP], id, table) { in phpdbg_export_breakpoints_to_string()
253 HashTable *broken, *file_breaks = &PHPDBG_G(bp)[PHPDBG_BREAK_FILE]; in phpdbg_set_breakpoint_file_ex()
263 …th: %s, was compiled: %d\n", original_path, path, zend_hash_str_exists(&PHPDBG_G(file_sources), pa… in phpdbg_set_breakpoint_file_ex()
265 if (!zend_hash_str_exists(&PHPDBG_G(file_sources), path, path_len)) { in phpdbg_set_breakpoint_file_ex()
272 file_breaks = &PHPDBG_G(bp)[PHPDBG_BREAK_FILE_PENDING]; in phpdbg_set_breakpoint_file_ex()
304 ZEND_HASH_FOREACH_STR_KEY(&PHPDBG_G(file_sources), file) { in phpdbg_set_breakpoint_file_ex()
317 PHPDBG_G(flags) |= PHPDBG_HAS_PENDING_FILE_BP; in phpdbg_set_breakpoint_file_ex()
321 PHPDBG_G(flags) |= PHPDBG_HAS_FILE_BP; in phpdbg_set_breakpoint_file_ex()
346 PHPDBG_G(flags) |= PHPDBG_HAS_FILE_BP; in phpdbg_resolve_pending_file_break_ex()
348 if (!(master = zend_hash_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE], file, filelen))) { in phpdbg_resolve_pending_file_break_ex()
351 …master = zend_hash_str_add_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE], file, filelen, &new_ht, sizeof(Ha… in phpdbg_resolve_pending_file_break_ex()
364 zend_hash_del(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_PENDING], cur); in phpdbg_resolve_pending_file_break_ex()
366 if (!zend_hash_num_elements(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_PENDING])) { in phpdbg_resolve_pending_file_break_ex()
367 PHPDBG_G(flags) &= ~PHPDBG_HAS_PENDING_FILE_BP; in phpdbg_resolve_pending_file_break_ex()
386 ZEND_HASH_FOREACH_STR_KEY_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_PENDING], cur, fileht) { in phpdbg_resolve_pending_file_break()
404 if (!zend_hash_str_exists(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], name, name_len)) { in phpdbg_set_breakpoint_symbol()
407 PHPDBG_G(flags) |= PHPDBG_HAS_SYM_BP; in phpdbg_set_breakpoint_symbol()
412 …zend_hash_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], lcname, name_len, &new_break, sizeof(php… in phpdbg_set_breakpoint_symbol()
416 PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_SYM]); in phpdbg_set_breakpoint_symbol()
439 …if (!(class_table = zend_hash_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD], class_lcname, class… in phpdbg_set_breakpoint_method()
441 …class_table = zend_hash_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD], class_lcname, class_len… in phpdbg_set_breakpoint_method()
447 PHPDBG_G(flags) |= PHPDBG_HAS_METHOD_BP; in phpdbg_set_breakpoint_method()
470 if (!zend_hash_index_exists(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], opline)) { in phpdbg_set_breakpoint_opline()
473 PHPDBG_G(flags) |= PHPDBG_HAS_OPLINE_BP; in phpdbg_set_breakpoint_opline()
480 …zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], opline, &new_break, sizeof(phpdbg_b… in phpdbg_set_breakpoint_opline()
483 PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE]); in phpdbg_set_breakpoint_opline()
518 PHPDBG_G(flags) |= PHPDBG_HAS_OPLINE_BP; in phpdbg_resolve_op_array_break()
520 …zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], opline_break.opline, &opline_break,… in phpdbg_resolve_op_array_break()
527 HashTable *func_table = &PHPDBG_G(bp)[PHPDBG_BREAK_FUNCTION_OPLINE]; in phpdbg_resolve_op_array_breaks()
531 …if (op_array->scope != NULL && !(func_table = zend_hash_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD… in phpdbg_resolve_op_array_breaks()
536 …if (!(oplines_table = zend_hash_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_OPLINE], op_array->filena… in phpdbg_resolve_op_array_breaks()
547 zend_hash_internal_pointer_end(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE]); in phpdbg_resolve_op_array_breaks()
548 opline_break = zend_hash_get_current_data_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE]); in phpdbg_resolve_op_array_breaks()
568 …if (PHPDBG_G(ops) != NULL && !memcmp(PHPDBG_G(ops)->filename, new_break->class_name, new_break->cl… in phpdbg_resolve_opline_break()
569 if (phpdbg_resolve_op_array_break(new_break, PHPDBG_G(ops)) == SUCCESS) { in phpdbg_resolve_opline_break()
655 …if (!(class_table = zend_hash_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD_OPLINE], new_break.cl… in phpdbg_set_breakpoint_method_opline()
657 …class_table = zend_hash_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD_OPLINE], new_break.class_… in phpdbg_set_breakpoint_method_opline()
669 PHPDBG_G(bp_count)--; in phpdbg_set_breakpoint_method_opline()
673 PHPDBG_G(flags) |= PHPDBG_HAS_METHOD_OPLINE_BP; in phpdbg_set_breakpoint_method_opline()
707 …if (!(func_table = zend_hash_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_FUNCTION_OPLINE], new_break.f… in phpdbg_set_breakpoint_function_opline()
709 …func_table = zend_hash_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_FUNCTION_OPLINE], new_break.func_… in phpdbg_set_breakpoint_function_opline()
715 PHPDBG_G(bp_count)--; in phpdbg_set_breakpoint_function_opline()
721 PHPDBG_G(flags) |= PHPDBG_HAS_FUNCTION_OPLINE_BP; in phpdbg_set_breakpoint_function_opline()
753 …if (!(file_table = zend_hash_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_OPLINE], new_break.class… in phpdbg_set_breakpoint_file_opline()
755 …file_table = zend_hash_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_OPLINE], new_break.class_nam… in phpdbg_set_breakpoint_file_opline()
761 PHPDBG_G(bp_count)--; in phpdbg_set_breakpoint_file_opline()
767 PHPDBG_G(flags) |= PHPDBG_HAS_FILE_OPLINE_BP; in phpdbg_set_breakpoint_file_opline()
778 if (zend_hash_index_exists(&PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE], hash)) { in phpdbg_set_breakpoint_opcode()
787 …zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE], hash, &new_break, sizeof(phpdbg_bre… in phpdbg_set_breakpoint_opcode()
789 PHPDBG_G(flags) |= PHPDBG_HAS_OPCODE_BP; in phpdbg_set_breakpoint_opcode()
792 PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE]); in phpdbg_set_breakpoint_opcode()
797 if (!zend_hash_index_exists(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], (zend_ulong) opline)) { in phpdbg_set_breakpoint_opline_ex()
800 PHPDBG_G(flags) |= PHPDBG_HAS_OPLINE_BP; in phpdbg_set_breakpoint_opline_ex()
806 …zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], (zend_ulong) opline, &new_break, si… in phpdbg_set_breakpoint_opline_ex()
809 PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE]); in phpdbg_set_breakpoint_opline_ex()
851 …brake = zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_COND], hash, &new_break, sizeof(phpd… in phpdbg_create_conditional_break()
855 PHPDBG_G(flags) |= PHPDBG_HAS_COND_BP; in phpdbg_create_conditional_break()
856 PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_COND]); in phpdbg_create_conditional_break()
860 PHPDBG_G(bp_count)--; in phpdbg_create_conditional_break()
871 if (!zend_hash_index_exists(&PHPDBG_G(bp)[PHPDBG_BREAK_COND], expr_hash)) { in phpdbg_set_breakpoint_expression()
889 if (!zend_hash_index_exists(&PHPDBG_G(bp)[PHPDBG_BREAK_COND], hash)) { in phpdbg_set_breakpoint_at()
908 if (!(breaks = zend_hash_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE], op_array->filename))) { in phpdbg_find_breakpoint_file()
938 brake = zend_hash_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], fname); in phpdbg_find_breakpoint_symbol()
943 return zend_hash_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], ZEND_STRL("main")); in phpdbg_find_breakpoint_symbol()
953 if ((class_table = zend_hash_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD], class_lcname))) { in phpdbg_find_breakpoint_method()
969 …if ((brake = zend_hash_index_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], (zend_ulong) opline)) &&… in phpdbg_find_breakpoint_opline()
984 …return zend_hash_index_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE], zend_hash_func(opname, strlen(… in phpdbg_find_breakpoint_opcode()
1064 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_COND], bp) { in phpdbg_find_conditional_breakpoint()
1085 PHPDBG_G(flags) |= PHPDBG_IN_COND_BP; in phpdbg_find_conditional_breakpoint()
1096 PHPDBG_G(flags) &= ~PHPDBG_IN_COND_BP; in phpdbg_find_conditional_breakpoint()
1110 if (!(PHPDBG_G(flags) & PHPDBG_IS_BP_ENABLED)) { in phpdbg_find_breakpoint()
1115 if (!(PHPDBG_G(flags) & PHPDBG_IN_EVAL) && in phpdbg_find_breakpoint()
1116 (PHPDBG_G(flags) & PHPDBG_HAS_COND_BP) && in phpdbg_find_breakpoint()
1121 …if ((PHPDBG_G(flags) & PHPDBG_HAS_FILE_BP) && (base = phpdbg_find_breakpoint_file(&execute_data->f… in phpdbg_find_breakpoint()
1125 if (PHPDBG_G(flags) & (PHPDBG_HAS_METHOD_BP|PHPDBG_HAS_SYM_BP)) { in phpdbg_find_breakpoint()
1135 …if ((PHPDBG_G(flags) & PHPDBG_HAS_OPLINE_BP) && (base = phpdbg_find_breakpoint_opline((phpdbg_opli… in phpdbg_find_breakpoint()
1139 …if ((PHPDBG_G(flags) & PHPDBG_HAS_OPCODE_BP) && (base = phpdbg_find_breakpoint_opcode(execute_data… in phpdbg_find_breakpoint()
1172 if (zend_hash_num_elements(&PHPDBG_G(bp)[type]) == 1) { in phpdbg_delete_breakpoint()
1173 PHPDBG_G(flags) &= ~(1<<(brake->type+1)); in phpdbg_delete_breakpoint()
1180 PHPDBG_G(flags) &= ~(1<<(brake->type+1)); in phpdbg_delete_breakpoint()
1189 if (zend_hash_num_elements(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE]) == 1) { in phpdbg_delete_breakpoint()
1190 PHPDBG_G(flags) &= PHPDBG_HAS_OPLINE_BP; in phpdbg_delete_breakpoint()
1192 … zend_hash_index_del(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], ((phpdbg_breakopline_t *) brake)->opline); in phpdbg_delete_breakpoint()
1205 zend_hash_str_del(&PHPDBG_G(bp)[type], name, name_len); in phpdbg_delete_breakpoint()
1220 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE]); in phpdbg_clear_breakpoints()
1221 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_PENDING]); in phpdbg_clear_breakpoints()
1222 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM]); in phpdbg_clear_breakpoints()
1223 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE]); in phpdbg_clear_breakpoints()
1224 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD_OPLINE]); in phpdbg_clear_breakpoints()
1225 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_FUNCTION_OPLINE]); in phpdbg_clear_breakpoints()
1226 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_OPLINE]); in phpdbg_clear_breakpoints()
1227 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE]); in phpdbg_clear_breakpoints()
1228 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD]); in phpdbg_clear_breakpoints()
1229 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_COND]); in phpdbg_clear_breakpoints()
1230 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP]); in phpdbg_clear_breakpoints()
1232 PHPDBG_G(flags) &= ~PHPDBG_BP_MASK; in phpdbg_clear_breakpoints()
1234 PHPDBG_G(bp_count) = 0; in phpdbg_clear_breakpoints()
1379 PHPDBG_G(flags) |= PHPDBG_IS_BP_ENABLED; in phpdbg_enable_breakpoints()
1383 PHPDBG_G(flags) &= ~PHPDBG_IS_BP_ENABLED; in phpdbg_disable_breakpoints()
1397 if ((*table = zend_hash_index_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP], id))) { in phpdbg_find_breakbase_ex()
1415 case PHPDBG_BREAK_SYM: if ((PHPDBG_G(flags) & PHPDBG_HAS_SYM_BP)) { in phpdbg_print_breakpoints()
1420 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], brake) { in phpdbg_print_breakpoints()
1427 case PHPDBG_BREAK_METHOD: if ((PHPDBG_G(flags) & PHPDBG_HAS_METHOD_BP)) { in phpdbg_print_breakpoints()
1432 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD], class_table) { in phpdbg_print_breakpoints()
1443 case PHPDBG_BREAK_FILE: if ((PHPDBG_G(flags) & PHPDBG_HAS_FILE_BP)) { in phpdbg_print_breakpoints()
1448 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE], points) { in phpdbg_print_breakpoints()
1457 } if ((PHPDBG_G(flags) & PHPDBG_HAS_PENDING_FILE_BP)) { in phpdbg_print_breakpoints()
1462 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_PENDING], points) { in phpdbg_print_breakpoints()
1473 case PHPDBG_BREAK_OPLINE: if ((PHPDBG_G(flags) & PHPDBG_HAS_OPLINE_BP)) { in phpdbg_print_breakpoints()
1478 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], brake) { in phpdbg_print_breakpoints()
1513 case PHPDBG_BREAK_METHOD_OPLINE: if ((PHPDBG_G(flags) & PHPDBG_HAS_METHOD_OPLINE_BP)) { in phpdbg_print_breakpoints()
1518 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD_OPLINE], class_table) { in phpdbg_print_breakpoints()
1531 case PHPDBG_BREAK_FUNCTION_OPLINE: if ((PHPDBG_G(flags) & PHPDBG_HAS_FUNCTION_OPLINE_BP)) { in phpdbg_print_breakpoints()
1536 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_FUNCTION_OPLINE], function_table) { in phpdbg_print_breakpoints()
1547 case PHPDBG_BREAK_FILE_OPLINE: if ((PHPDBG_G(flags) & PHPDBG_HAS_FILE_OPLINE_BP)) { in phpdbg_print_breakpoints()
1552 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_OPLINE], file_table) { in phpdbg_print_breakpoints()
1563 case PHPDBG_BREAK_COND: if ((PHPDBG_G(flags) & PHPDBG_HAS_COND_BP)) { in phpdbg_print_breakpoints()
1568 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_COND], brake) { in phpdbg_print_breakpoints()
1619 case PHPDBG_BREAK_OPCODE: if (PHPDBG_G(flags) & PHPDBG_HAS_OPCODE_BP) { in phpdbg_print_breakpoints()
1624 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE], brake) { in phpdbg_print_breakpoints()