Lines Matching refs:new_break

265 	phpdbg_breakfile_t new_break;  in phpdbg_set_breakpoint_file()  local
305 PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_FILE); in phpdbg_set_breakpoint_file()
306 new_break.filename = estrndup(path, path_len); in phpdbg_set_breakpoint_file()
307 new_break.line = line_num; in phpdbg_set_breakpoint_file()
309 zend_hash_index_update_mem(broken, line_num, &new_break, sizeof(phpdbg_breakfile_t)); in phpdbg_set_breakpoint_file()
311 PHPDBG_BREAK_MAPPING(new_break.id, broken); in phpdbg_set_breakpoint_file()
321 new_break = *(phpdbg_breakfile_t *) zend_hash_index_find_ptr(fileht, line_num); in phpdbg_set_breakpoint_file()
330 …"Pending breakpoint #%d added at %s:"ZEND_ULONG_FMT"", new_break.id, new_break.filename, new_break in phpdbg_set_breakpoint_file()
334 …_notice("Breakpoint #%d added at %s:"ZEND_ULONG_FMT"", new_break.id, new_break.filename, new_break in phpdbg_set_breakpoint_file()
416 phpdbg_breaksymbol_t new_break; in phpdbg_set_breakpoint_symbol() local
420 PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_SYM); in phpdbg_set_breakpoint_symbol()
421 new_break.symbol = estrndup(name, name_len); in phpdbg_set_breakpoint_symbol()
423 …zend_hash_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], lcname, name_len, &new_break, sizeof(php… in phpdbg_set_breakpoint_symbol()
425 phpdbg_notice("Breakpoint #%d added at %s", new_break.id, new_break.symbol); in phpdbg_set_breakpoint_symbol()
427 PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_SYM]); in phpdbg_set_breakpoint_symbol()
456 phpdbg_breakmethod_t new_break; in phpdbg_set_breakpoint_method() local
460 PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_METHOD); in phpdbg_set_breakpoint_method()
461 new_break.class_name = estrndup(class_name, class_len); in phpdbg_set_breakpoint_method()
462 new_break.class_len = class_len; in phpdbg_set_breakpoint_method()
463 new_break.func_name = estrndup(func_name, func_len); in phpdbg_set_breakpoint_method()
464 new_break.func_len = func_len; in phpdbg_set_breakpoint_method()
466 …zend_hash_str_update_mem(class_table, func_lcname, func_len, &new_break, sizeof(phpdbg_breakmethod… in phpdbg_set_breakpoint_method()
468 phpdbg_notice("Breakpoint #%d added at %s::%s", new_break.id, class_name, func_name); in phpdbg_set_breakpoint_method()
470 PHPDBG_BREAK_MAPPING(new_break.id, class_table); in phpdbg_set_breakpoint_method()
482 phpdbg_breakline_t new_break; in phpdbg_set_breakpoint_opline() local
486 PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_OPLINE); in phpdbg_set_breakpoint_opline()
487 new_break.name = NULL; in phpdbg_set_breakpoint_opline()
488 new_break.opline = opline; in phpdbg_set_breakpoint_opline()
489 new_break.base = NULL; in phpdbg_set_breakpoint_opline()
491 …zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], opline, &new_break, sizeof(phpdbg_b… in phpdbg_set_breakpoint_opline()
493 phpdbg_notice("Breakpoint #%d added at #"ZEND_ULONG_FMT, new_break.id, new_break.opline); in phpdbg_set_breakpoint_opline()
494 PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE]); in phpdbg_set_breakpoint_opline()
572 PHPDBG_API int phpdbg_resolve_opline_break(phpdbg_breakopline_t *new_break) /* {{{ */ in phpdbg_resolve_opline_break() argument
577 if (new_break->func_name == NULL) { in phpdbg_resolve_opline_break()
579 …if (PHPDBG_G(ops) != NULL && !memcmp(PHPDBG_G(ops)->filename, new_break->class_name, new_break->cl… in phpdbg_resolve_opline_break()
580 if (phpdbg_resolve_op_array_break(new_break, PHPDBG_G(ops)) == SUCCESS) { in phpdbg_resolve_opline_break()
592 …e == NULL && new_break->class_len == ZSTR_LEN(op_array->filename) && !memcmp(ZSTR_VAL(op_array->fi… in phpdbg_resolve_opline_break()
593 if (phpdbg_resolve_op_array_break(new_break, op_array) == SUCCESS) { in phpdbg_resolve_opline_break()
605 if (new_break->class_name != NULL) { in phpdbg_resolve_opline_break()
607 …r_find_ptr(EG(class_table), zend_str_tolower_dup(new_break->class_name, new_break->class_len), new… in phpdbg_resolve_opline_break()
613 …ash_str_find_ptr(func_table, zend_str_tolower_dup(new_break->func_name, new_break->func_len), new_… in phpdbg_resolve_opline_break()
614 if (new_break->class_name != NULL && new_break->func_name != NULL) { in phpdbg_resolve_opline_break()
615 phpdbg_error("Method %s doesn't exist in class %s", new_break->func_name, new_break->class_name); in phpdbg_resolve_opline_break()
622 if (new_break->class_name == NULL) { in phpdbg_resolve_opline_break()
623 phpdbg_error("%s is not a user defined function, no oplines exist", new_break->func_name); in phpdbg_resolve_opline_break()
625 …or("%s::%s is not a user defined method, no oplines exist", new_break->class_name, new_break->func… in phpdbg_resolve_opline_break()
630 if (phpdbg_resolve_op_array_break(new_break, &func->op_array) == FAILURE) { in phpdbg_resolve_opline_break()
641 phpdbg_breakopline_t new_break; in phpdbg_set_breakpoint_method_opline() local
645 PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_METHOD_OPLINE); in phpdbg_set_breakpoint_method_opline()
646 new_break.func_len = strlen(method); in phpdbg_set_breakpoint_method_opline()
647 new_break.func_name = estrndup(method, new_break.func_len); in phpdbg_set_breakpoint_method_opline()
648 new_break.class_len = strlen(class); in phpdbg_set_breakpoint_method_opline()
649 new_break.class_name = estrndup(class, new_break.class_len); in phpdbg_set_breakpoint_method_opline()
650 new_break.opline_num = opline; in phpdbg_set_breakpoint_method_opline()
651 new_break.opline = 0; in phpdbg_set_breakpoint_method_opline()
653 switch (phpdbg_resolve_opline_break(&new_break)) { in phpdbg_set_breakpoint_method_opline()
655 …ce("Pending breakpoint #%d at %s::%s#"ZEND_ULONG_FMT, new_break.id, new_break.class_name, new_brea… in phpdbg_set_breakpoint_method_opline()
659 …tice("Breakpoint #%d added at %s::%s#"ZEND_ULONG_FMT, new_break.id, new_break.class_name, new_brea… in phpdbg_set_breakpoint_method_opline()
666 …hash_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD_OPLINE], new_break.class_name, new_break.class… in phpdbg_set_breakpoint_method_opline()
668 …sh_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD_OPLINE], new_break.class_name, new_break.class… in phpdbg_set_breakpoint_method_opline()
671 …if (!(method_table = zend_hash_str_find_ptr(class_table, new_break.func_name, new_break.func_len))… in phpdbg_set_breakpoint_method_opline()
673 …method_table = zend_hash_str_update_mem(class_table, new_break.func_name, new_break.func_len, &met… in phpdbg_set_breakpoint_method_opline()
677 …error("Breakpoint already exists for %s::%s#"ZEND_ULONG_FMT, new_break.class_name, new_break.func_… in phpdbg_set_breakpoint_method_opline()
678 efree((char*)new_break.func_name); in phpdbg_set_breakpoint_method_opline()
679 efree((char*)new_break.class_name); in phpdbg_set_breakpoint_method_opline()
686 PHPDBG_BREAK_MAPPING(new_break.id, method_table); in phpdbg_set_breakpoint_method_opline()
688 zend_hash_index_update_mem(method_table, opline, &new_break, sizeof(phpdbg_breakopline_t)); in phpdbg_set_breakpoint_method_opline()
694 phpdbg_breakopline_t new_break; in phpdbg_set_breakpoint_function_opline() local
697 PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_FUNCTION_OPLINE); in phpdbg_set_breakpoint_function_opline()
698 new_break.func_len = strlen(function); in phpdbg_set_breakpoint_function_opline()
699 new_break.func_name = estrndup(function, new_break.func_len); in phpdbg_set_breakpoint_function_opline()
700 new_break.class_len = 0; in phpdbg_set_breakpoint_function_opline()
701 new_break.class_name = NULL; in phpdbg_set_breakpoint_function_opline()
702 new_break.opline_num = opline; in phpdbg_set_breakpoint_function_opline()
703 new_break.opline = 0; in phpdbg_set_breakpoint_function_opline()
705 switch (phpdbg_resolve_opline_break(&new_break)) { in phpdbg_set_breakpoint_function_opline()
707 …phpdbg_notice("Pending breakpoint #%d at %s#"ZEND_ULONG_FMT, new_break.id, new_break.func_name, op… in phpdbg_set_breakpoint_function_opline()
711 …phpdbg_notice("Breakpoint #%d added at %s#"ZEND_ULONG_FMT, new_break.id, new_break.func_name, opli… in phpdbg_set_breakpoint_function_opline()
718 …sh_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_FUNCTION_OPLINE], new_break.func_name, new_break.func_l… in phpdbg_set_breakpoint_function_opline()
720 …_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_FUNCTION_OPLINE], new_break.func_name, new_break.func_l… in phpdbg_set_breakpoint_function_opline()
724 phpdbg_error("Breakpoint already exists for %s#"ZEND_ULONG_FMT, new_break.func_name, opline); in phpdbg_set_breakpoint_function_opline()
725 efree((char*)new_break.func_name); in phpdbg_set_breakpoint_function_opline()
730 PHPDBG_BREAK_MAPPING(new_break.id, func_table); in phpdbg_set_breakpoint_function_opline()
734 zend_hash_index_update_mem(func_table, opline, &new_break, sizeof(phpdbg_breakopline_t)); in phpdbg_set_breakpoint_function_opline()
740 phpdbg_breakopline_t new_break; in phpdbg_set_breakpoint_file_opline() local
743 PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_FILE_OPLINE); in phpdbg_set_breakpoint_file_opline()
744 new_break.func_len = 0; in phpdbg_set_breakpoint_file_opline()
745 new_break.func_name = NULL; in phpdbg_set_breakpoint_file_opline()
746 new_break.class_len = strlen(file); in phpdbg_set_breakpoint_file_opline()
747 new_break.class_name = estrndup(file, new_break.class_len); in phpdbg_set_breakpoint_file_opline()
748 new_break.opline_num = opline; in phpdbg_set_breakpoint_file_opline()
749 new_break.opline = 0; in phpdbg_set_breakpoint_file_opline()
751 switch (phpdbg_resolve_opline_break(&new_break)) { in phpdbg_set_breakpoint_file_opline()
753 …phpdbg_notice("Pending breakpoint #%d at %s:"ZEND_ULONG_FMT, new_break.id, new_break.class_name, o… in phpdbg_set_breakpoint_file_opline()
757 …phpdbg_notice("Breakpoint #%d added at %s:"ZEND_ULONG_FMT, new_break.id, new_break.class_name, opl… in phpdbg_set_breakpoint_file_opline()
764 …d_hash_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_OPLINE], new_break.class_name, new_break.class… in phpdbg_set_breakpoint_file_opline()
766 …hash_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_OPLINE], new_break.class_name, new_break.class… in phpdbg_set_breakpoint_file_opline()
770 phpdbg_error("Breakpoint already exists for %s:"ZEND_ULONG_FMT, new_break.class_name, opline); in phpdbg_set_breakpoint_file_opline()
771 efree((char*)new_break.class_name); in phpdbg_set_breakpoint_file_opline()
776 PHPDBG_BREAK_MAPPING(new_break.id, file_table); in phpdbg_set_breakpoint_file_opline()
780 zend_hash_index_update_mem(file_table, opline, &new_break, sizeof(phpdbg_breakopline_t)); in phpdbg_set_breakpoint_file_opline()
786 phpdbg_breakop_t new_break; in phpdbg_set_breakpoint_opcode() local
794 PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_OPCODE); in phpdbg_set_breakpoint_opcode()
795 new_break.hash = hash; in phpdbg_set_breakpoint_opcode()
796 new_break.name = estrndup(name, name_len); in phpdbg_set_breakpoint_opcode()
798 …zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE], hash, &new_break, sizeof(phpdbg_bre… in phpdbg_set_breakpoint_opcode()
802 phpdbg_notice("Breakpoint #%d added at %s", new_break.id, name); in phpdbg_set_breakpoint_opcode()
803 PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE]); in phpdbg_set_breakpoint_opcode()
809 phpdbg_breakline_t new_break; in phpdbg_set_breakpoint_opline_ex() local
813 PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_OPLINE); in phpdbg_set_breakpoint_opline_ex()
814 new_break.opline = (zend_ulong) opline; in phpdbg_set_breakpoint_opline_ex()
815 new_break.base = NULL; in phpdbg_set_breakpoint_opline_ex()
817 …zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], (zend_ulong) opline, &new_break, si… in phpdbg_set_breakpoint_opline_ex()
819 phpdbg_notice("Breakpoint #%d added at #"ZEND_ULONG_FMT, new_break.id, new_break.opline); in phpdbg_set_breakpoint_opline_ex()
820 PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE]); in phpdbg_set_breakpoint_opline_ex()
828 phpdbg_breakcond_t new_break; in phpdbg_create_conditional_break() local
849 PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_COND); in phpdbg_create_conditional_break()
850 new_break.hash = hash; in phpdbg_create_conditional_break()
853 new_break.paramed = 1; in phpdbg_create_conditional_break()
855 param, &new_break.param); in phpdbg_create_conditional_break()
856 if (new_break.param.type == FILE_PARAM || in phpdbg_create_conditional_break()
857 new_break.param.type == NUMERIC_FILE_PARAM) { in phpdbg_create_conditional_break()
860 if (VCWD_REALPATH(new_break.param.file.name, realpath)) { in phpdbg_create_conditional_break()
861 efree(new_break.param.file.name); in phpdbg_create_conditional_break()
863 new_break.param.file.name = estrdup(realpath); in phpdbg_create_conditional_break()
865 phpdbg_error("Invalid file for conditional break %s", new_break.param.file.name); in phpdbg_create_conditional_break()
866 phpdbg_clear_param(&new_break.param); in phpdbg_create_conditional_break()
871 new_break.paramed = 0; in phpdbg_create_conditional_break()
878 new_break.code = estrndup(expr, expr_len); in phpdbg_create_conditional_break()
879 new_break.code_len = expr_len; in phpdbg_create_conditional_break()
883 new_break.ops = zend_compile_string(bp_code, "Conditional Breakpoint Code"); in phpdbg_create_conditional_break()
886 if (new_break.ops) { in phpdbg_create_conditional_break()
887 …brake = zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_COND], hash, &new_break, sizeof(phpd… in phpdbg_create_conditional_break()
892 PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_COND]); in phpdbg_create_conditional_break()
895 efree((char*)new_break.code); in phpdbg_create_conditional_break()
905 phpdbg_breakcond_t new_break; in phpdbg_set_breakpoint_expression() local
909 &new_break, NULL, expr, expr_len, expr_hash); in phpdbg_set_breakpoint_expression()
917 phpdbg_breakcond_t new_break; in phpdbg_set_breakpoint_at() local
926 phpdbg_create_conditional_break(&new_break, param, condition->str, condition->len, hash); in phpdbg_set_breakpoint_at()