Lines Matching refs:bp

45 	zend_hash_index_update_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP], id, table);  in _phpdbg_break_mapping()
51 zend_hash_index_del(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP], (id))
63 phpdbg_breakfile_t *bp = (phpdbg_breakfile_t*) Z_PTR_P(data); in phpdbg_file_breaks_dtor() local
65 efree((char*)bp->filename); in phpdbg_file_breaks_dtor()
66 efree(bp); in phpdbg_file_breaks_dtor()
71 phpdbg_breakmethod_t *bp = (phpdbg_breakmethod_t *) Z_PTR_P(data); in phpdbg_class_breaks_dtor() local
73 efree((char*)bp->class_name); in phpdbg_class_breaks_dtor()
74 efree((char*)bp->func_name); in phpdbg_class_breaks_dtor()
75 efree(bp); in phpdbg_class_breaks_dtor()
86 phpdbg_breakopline_t *bp = (phpdbg_breakopline_t *) Z_PTR_P(data); in phpdbg_opline_breaks_dtor() local
88 if (bp->class_name) { in phpdbg_opline_breaks_dtor()
89 efree((char*)bp->class_name); in phpdbg_opline_breaks_dtor()
91 if (bp->func_name) { in phpdbg_opline_breaks_dtor()
92 efree((char*)bp->func_name); in phpdbg_opline_breaks_dtor()
94 efree(bp); in phpdbg_opline_breaks_dtor()
101 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP], table) { in phpdbg_reset_breakpoints()
125 if (zend_hash_num_elements(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP])) { in phpdbg_export_breakpoints_to_string()
126 …ount=\"%d\"", "Exporting %d breakpoints", zend_hash_num_elements(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP])); in phpdbg_export_breakpoints_to_string()
129 ZEND_HASH_FOREACH_NUM_KEY_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP], id, table) { in phpdbg_export_breakpoints_to_string()
265 HashTable *broken, *file_breaks = &PHPDBG_G(bp)[PHPDBG_BREAK_FILE]; in phpdbg_set_breakpoint_file()
284 file_breaks = &PHPDBG_G(bp)[PHPDBG_BREAK_FILE_PENDING]; in phpdbg_set_breakpoint_file()
360 if (!(master = zend_hash_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE], file, filelen))) { in phpdbg_resolve_pending_file_break_ex()
363 …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()
376 zend_hash_del(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_PENDING], cur); in phpdbg_resolve_pending_file_break_ex()
378 if (!zend_hash_num_elements(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_PENDING])) { in phpdbg_resolve_pending_file_break_ex()
398 ZEND_HASH_FOREACH_STR_KEY_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_PENDING], cur, fileht) { in phpdbg_resolve_pending_file_break()
416 if (!zend_hash_str_exists(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], name, name_len)) { in phpdbg_set_breakpoint_symbol()
424 …zend_hash_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], lcname, name_len, &new_break, sizeof(php… in phpdbg_set_breakpoint_symbol()
428 PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_SYM]); in phpdbg_set_breakpoint_symbol()
451 …if (!(class_table = zend_hash_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD], class_lcname, class… in phpdbg_set_breakpoint_method()
453 …class_table = zend_hash_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD], class_lcname, class_len… in phpdbg_set_breakpoint_method()
482 if (!zend_hash_index_exists(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], opline)) { in phpdbg_set_breakpoint_opline()
492 …zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], opline, &new_break, sizeof(phpdbg_b… in phpdbg_set_breakpoint_opline()
495 PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE]); in phpdbg_set_breakpoint_opline()
532 …zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], opline_break.opline, &opline_break,… in phpdbg_resolve_op_array_break()
539 HashTable *func_table = &PHPDBG_G(bp)[PHPDBG_BREAK_FUNCTION_OPLINE]; in phpdbg_resolve_op_array_breaks()
543 …if (op_array->scope != NULL && !(func_table = zend_hash_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD… in phpdbg_resolve_op_array_breaks()
548 …if (!(oplines_table = zend_hash_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_OPLINE], op_array->filena… in phpdbg_resolve_op_array_breaks()
559 zend_hash_internal_pointer_end(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE]); in phpdbg_resolve_op_array_breaks()
560 opline_break = zend_hash_get_current_data_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE]); in phpdbg_resolve_op_array_breaks()
667 …if (!(class_table = zend_hash_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD_OPLINE], new_break.cl… in phpdbg_set_breakpoint_method_opline()
669 …class_table = zend_hash_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD_OPLINE], new_break.class_… in phpdbg_set_breakpoint_method_opline()
719 …if (!(func_table = zend_hash_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_FUNCTION_OPLINE], new_break.f… in phpdbg_set_breakpoint_function_opline()
721 …func_table = zend_hash_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_FUNCTION_OPLINE], new_break.func_… in phpdbg_set_breakpoint_function_opline()
765 …if (!(file_table = zend_hash_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_OPLINE], new_break.class… in phpdbg_set_breakpoint_file_opline()
767 …file_table = zend_hash_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_OPLINE], new_break.class_nam… in phpdbg_set_breakpoint_file_opline()
790 if (zend_hash_index_exists(&PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE], hash)) { in phpdbg_set_breakpoint_opcode()
799 …zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE], hash, &new_break, sizeof(phpdbg_bre… in phpdbg_set_breakpoint_opcode()
804 PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE]); in phpdbg_set_breakpoint_opcode()
809 if (!zend_hash_index_exists(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], (zend_ulong) opline)) { in phpdbg_set_breakpoint_opline_ex()
818 …zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], (zend_ulong) opline, &new_break, si… in phpdbg_set_breakpoint_opline_ex()
821 PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE]); in phpdbg_set_breakpoint_opline_ex()
886 …brake = zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_COND], hash, &new_break, sizeof(phpd… in phpdbg_create_conditional_break()
891 PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_COND]); in phpdbg_create_conditional_break()
906 if (!zend_hash_index_exists(&PHPDBG_G(bp)[PHPDBG_BREAK_COND], expr_hash)) { in phpdbg_set_breakpoint_expression()
924 if (!zend_hash_index_exists(&PHPDBG_G(bp)[PHPDBG_BREAK_COND], hash)) { in phpdbg_set_breakpoint_at()
943 if (!(breaks = zend_hash_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE], op_array->filename))) { in phpdbg_find_breakpoint_file()
973 brake = zend_hash_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], fname); in phpdbg_find_breakpoint_symbol()
978 return zend_hash_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], ZEND_STRL("main")); in phpdbg_find_breakpoint_symbol()
988 if ((class_table = zend_hash_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD], class_lcname))) { in phpdbg_find_breakpoint_method()
1004 …if ((brake = zend_hash_index_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], (zend_ulong) opline)) &&… in phpdbg_find_breakpoint_opline()
1019 …return zend_hash_index_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE], zend_hash_func(opname, strlen(… in phpdbg_find_breakpoint_opcode()
1096 phpdbg_breakcond_t *bp; in phpdbg_find_conditional_breakpoint() local
1099 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_COND], bp) { in phpdbg_find_conditional_breakpoint()
1105 if (((phpdbg_breakbase_t*)bp)->disabled) { in phpdbg_find_conditional_breakpoint()
1109 if (bp->paramed) { in phpdbg_find_conditional_breakpoint()
1110 if (!phpdbg_find_breakpoint_param(&bp->param, execute_data)) { in phpdbg_find_conditional_breakpoint()
1121 zend_execute(bp->ops, &retval); in phpdbg_find_conditional_breakpoint()
1138 return (breakpoint == SUCCESS) ? ((phpdbg_breakbase_t *) bp) : NULL; in phpdbg_find_conditional_breakpoint()
1207 if (zend_hash_num_elements(&PHPDBG_G(bp)[type]) == 1) { in phpdbg_delete_breakpoint()
1224 if (zend_hash_num_elements(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE]) == 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()
1240 zend_hash_str_del(&PHPDBG_G(bp)[type], name, name_len); in phpdbg_delete_breakpoint()
1255 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE]); in phpdbg_clear_breakpoints()
1256 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_PENDING]); in phpdbg_clear_breakpoints()
1257 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM]); in phpdbg_clear_breakpoints()
1258 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE]); in phpdbg_clear_breakpoints()
1259 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD_OPLINE]); in phpdbg_clear_breakpoints()
1260 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_FUNCTION_OPLINE]); in phpdbg_clear_breakpoints()
1261 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_OPLINE]); in phpdbg_clear_breakpoints()
1262 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE]); in phpdbg_clear_breakpoints()
1263 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD]); in phpdbg_clear_breakpoints()
1264 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_COND]); in phpdbg_clear_breakpoints()
1265 zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP]); in phpdbg_clear_breakpoints()
1432 if ((*table = zend_hash_index_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP], id))) { in phpdbg_find_breakbase_ex()
1455 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], brake) { in phpdbg_print_breakpoints()
1467 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD], class_table) { in phpdbg_print_breakpoints()
1483 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE], points) { in phpdbg_print_breakpoints()
1497 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_PENDING], points) { in phpdbg_print_breakpoints()
1513 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], brake) { in phpdbg_print_breakpoints()
1553 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD_OPLINE], class_table) { in phpdbg_print_breakpoints()
1571 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_FUNCTION_OPLINE], function_table) { in phpdbg_print_breakpoints()
1587 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_OPLINE], file_table) { in phpdbg_print_breakpoints()
1603 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_COND], brake) { in phpdbg_print_breakpoints()
1659 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE], brake) { in phpdbg_print_breakpoints()