Lines Matching refs:new_break

266 	phpdbg_breakfile_t new_break;  in phpdbg_set_breakpoint_file()  local
306 PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_FILE); in phpdbg_set_breakpoint_file()
307 new_break.filename = estrndup(path, path_len); in phpdbg_set_breakpoint_file()
308 new_break.line = line_num; in phpdbg_set_breakpoint_file()
310 zend_hash_index_update_mem(broken, line_num, &new_break, sizeof(phpdbg_breakfile_t)); in phpdbg_set_breakpoint_file()
312 PHPDBG_BREAK_MAPPING(new_break.id, broken); in phpdbg_set_breakpoint_file()
322 new_break = *(phpdbg_breakfile_t *) zend_hash_index_find_ptr(fileht, line_num); in phpdbg_set_breakpoint_file()
331 …"pending\"", "Pending breakpoint #%d added at %s:%ld", new_break.id, new_break.filename, new_break in phpdbg_set_breakpoint_file()
335 …"%s\" line=\"%ld\"", "Breakpoint #%d added at %s:%ld", new_break.id, new_break.filename, new_break in phpdbg_set_breakpoint_file()
417 phpdbg_breaksymbol_t new_break; in phpdbg_set_breakpoint_symbol() local
421 PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_SYM); in phpdbg_set_breakpoint_symbol()
422 new_break.symbol = estrndup(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()
426 …uccess\" id=\"%d\" function=\"%s\"", "Breakpoint #%d added at %s", new_break.id, new_break.symbol); in phpdbg_set_breakpoint_symbol()
428 PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_SYM]); in phpdbg_set_breakpoint_symbol()
457 phpdbg_breakmethod_t new_break; in phpdbg_set_breakpoint_method() local
461 PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_METHOD); in phpdbg_set_breakpoint_method()
462 new_break.class_name = estrndup(class_name, class_len); in phpdbg_set_breakpoint_method()
463 new_break.class_len = class_len; in phpdbg_set_breakpoint_method()
464 new_break.func_name = estrndup(func_name, func_len); in phpdbg_set_breakpoint_method()
465 new_break.func_len = func_len; in phpdbg_set_breakpoint_method()
467 …zend_hash_str_update_mem(class_table, func_lcname, func_len, &new_break, sizeof(phpdbg_breakmethod… in phpdbg_set_breakpoint_method()
469 …ccess\" id=\"%d\" method=\"%s::%s\"", "Breakpoint #%d added at %s::%s", new_break.id, class_name, … in phpdbg_set_breakpoint_method()
471 PHPDBG_BREAK_MAPPING(new_break.id, class_table); in phpdbg_set_breakpoint_method()
483 phpdbg_breakline_t new_break; in phpdbg_set_breakpoint_opline() local
487 PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_OPLINE); in phpdbg_set_breakpoint_opline()
488 new_break.name = NULL; in phpdbg_set_breakpoint_opline()
489 new_break.opline = opline; in phpdbg_set_breakpoint_opline()
490 new_break.base = NULL; 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()
494 …cess\" id=\"%d\" opline=\"%#lx\"", "Breakpoint #%d added at %#lx", new_break.id, new_break.opline); in phpdbg_set_breakpoint_opline()
495 PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE]); in phpdbg_set_breakpoint_opline()
573 PHPDBG_API int phpdbg_resolve_opline_break(phpdbg_breakopline_t *new_break) /* {{{ */ in phpdbg_resolve_opline_break() argument
578 if (new_break->func_name == NULL) { in phpdbg_resolve_opline_break()
580 …if (PHPDBG_G(ops) != NULL && !memcmp(PHPDBG_G(ops)->filename, new_break->class_name, new_break->cl… in phpdbg_resolve_opline_break()
581 if (phpdbg_resolve_op_array_break(new_break, PHPDBG_G(ops)) == SUCCESS) { in phpdbg_resolve_opline_break()
593 …e == NULL && new_break->class_len == ZSTR_LEN(op_array->filename) && !memcmp(ZSTR_VAL(op_array->fi… in phpdbg_resolve_opline_break()
594 if (phpdbg_resolve_op_array_break(new_break, op_array) == SUCCESS) { in phpdbg_resolve_opline_break()
606 if (new_break->class_name != NULL) { in phpdbg_resolve_opline_break()
608 …r_find_ptr(EG(class_table), zend_str_tolower_dup(new_break->class_name, new_break->class_len), new… in phpdbg_resolve_opline_break()
614 …ash_str_find_ptr(func_table, zend_str_tolower_dup(new_break->func_name, new_break->func_len), new_… in phpdbg_resolve_opline_break()
615 if (new_break->class_name != NULL && new_break->func_name != NULL) { in phpdbg_resolve_opline_break()
616 …" method=\"%s::%s\"", "Method %s doesn't exist in class %s", new_break->func_name, new_break->clas… in phpdbg_resolve_opline_break()
623 if (new_break->class_name == NULL) { in phpdbg_resolve_opline_break()
624 …n\" function=\"%s\"", "%s is not a user defined function, no oplines exist", new_break->func_name); in phpdbg_resolve_opline_break()
626 …", "%s::%s is not a user defined method, no oplines exist", new_break->class_name, new_break->func… in phpdbg_resolve_opline_break()
631 if (phpdbg_resolve_op_array_break(new_break, &func->op_array) == FAILURE) { in phpdbg_resolve_opline_break()
642 phpdbg_breakopline_t new_break; in phpdbg_set_breakpoint_method_opline() local
646 PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_METHOD_OPLINE); in phpdbg_set_breakpoint_method_opline()
647 new_break.func_len = strlen(method); in phpdbg_set_breakpoint_method_opline()
648 new_break.func_name = estrndup(method, new_break.func_len); in phpdbg_set_breakpoint_method_opline()
649 new_break.class_len = strlen(class); in phpdbg_set_breakpoint_method_opline()
650 new_break.class_name = estrndup(class, new_break.class_len); in phpdbg_set_breakpoint_method_opline()
651 new_break.opline_num = opline; in phpdbg_set_breakpoint_method_opline()
652 new_break.opline = 0; in phpdbg_set_breakpoint_method_opline()
654 switch (phpdbg_resolve_opline_break(&new_break)) { in phpdbg_set_breakpoint_method_opline()
656 …num=\"%ld\"", "Pending breakpoint #%d at %s::%s#%ld", new_break.id, new_break.class_name, new_brea… in phpdbg_set_breakpoint_method_opline()
660 …" num=\"%ld\"", "Breakpoint #%d added at %s::%s#%ld", new_break.id, new_break.class_name, new_brea… in phpdbg_set_breakpoint_method_opline()
667 …hash_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD_OPLINE], new_break.class_name, new_break.class… in phpdbg_set_breakpoint_method_opline()
669 …sh_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD_OPLINE], new_break.class_name, new_break.class… in phpdbg_set_breakpoint_method_opline()
672 …if (!(method_table = zend_hash_str_find_ptr(class_table, new_break.func_name, new_break.func_len))… in phpdbg_set_breakpoint_method_opline()
674 …method_table = zend_hash_str_update_mem(class_table, new_break.func_name, new_break.func_len, &met… in phpdbg_set_breakpoint_method_opline()
678 …\" num=\"%ld\"", "Breakpoint already exists for %s::%s#%ld", new_break.class_name, new_break.func_… in phpdbg_set_breakpoint_method_opline()
679 efree((char*)new_break.func_name); in phpdbg_set_breakpoint_method_opline()
680 efree((char*)new_break.class_name); in phpdbg_set_breakpoint_method_opline()
687 PHPDBG_BREAK_MAPPING(new_break.id, method_table); in phpdbg_set_breakpoint_method_opline()
689 zend_hash_index_update_mem(method_table, opline, &new_break, sizeof(phpdbg_breakopline_t)); in phpdbg_set_breakpoint_method_opline()
695 phpdbg_breakopline_t new_break; in phpdbg_set_breakpoint_function_opline() local
698 PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_FUNCTION_OPLINE); in phpdbg_set_breakpoint_function_opline()
699 new_break.func_len = strlen(function); in phpdbg_set_breakpoint_function_opline()
700 new_break.func_name = estrndup(function, new_break.func_len); in phpdbg_set_breakpoint_function_opline()
701 new_break.class_len = 0; in phpdbg_set_breakpoint_function_opline()
702 new_break.class_name = NULL; in phpdbg_set_breakpoint_function_opline()
703 new_break.opline_num = opline; in phpdbg_set_breakpoint_function_opline()
704 new_break.opline = 0; in phpdbg_set_breakpoint_function_opline()
706 switch (phpdbg_resolve_opline_break(&new_break)) { in phpdbg_set_breakpoint_function_opline()
708 …unction=\"%s\" num=\"%ld\"", "Pending breakpoint #%d at %s#%ld", new_break.id, new_break.func_name… in phpdbg_set_breakpoint_function_opline()
712 … function=\"%s\" num=\"%ld\"", "Breakpoint #%d added at %s#%ld", new_break.id, new_break.func_name… in phpdbg_set_breakpoint_function_opline()
719 …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()
721 …_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_FUNCTION_OPLINE], new_break.func_name, new_break.func_l… in phpdbg_set_breakpoint_function_opline()
725 …" function=\"%s\" num=\"%ld\"", "Breakpoint already exists for %s#%ld", new_break.func_name, oplin… in phpdbg_set_breakpoint_function_opline()
726 efree((char*)new_break.func_name); in phpdbg_set_breakpoint_function_opline()
731 PHPDBG_BREAK_MAPPING(new_break.id, func_table); in phpdbg_set_breakpoint_function_opline()
735 zend_hash_index_update_mem(func_table, opline, &new_break, sizeof(phpdbg_breakopline_t)); in phpdbg_set_breakpoint_function_opline()
741 phpdbg_breakopline_t new_break; in phpdbg_set_breakpoint_file_opline() local
744 PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_FILE_OPLINE); in phpdbg_set_breakpoint_file_opline()
745 new_break.func_len = 0; in phpdbg_set_breakpoint_file_opline()
746 new_break.func_name = NULL; in phpdbg_set_breakpoint_file_opline()
747 new_break.class_len = strlen(file); in phpdbg_set_breakpoint_file_opline()
748 new_break.class_name = estrndup(file, new_break.class_len); in phpdbg_set_breakpoint_file_opline()
749 new_break.opline_num = opline; in phpdbg_set_breakpoint_file_opline()
750 new_break.opline = 0; in phpdbg_set_breakpoint_file_opline()
752 switch (phpdbg_resolve_opline_break(&new_break)) { in phpdbg_set_breakpoint_file_opline()
754 …\" file=\"%s\" num=\"%ld\"", "Pending breakpoint #%d at %s:%ld", new_break.id, new_break.class_nam… in phpdbg_set_breakpoint_file_opline()
758 …%d\" file=\"%s\" num=\"%ld\"", "Breakpoint #%d added at %s:%ld", new_break.id, new_break.class_nam… in phpdbg_set_breakpoint_file_opline()
765 …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()
767 …hash_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_OPLINE], new_break.class_name, new_break.class… in phpdbg_set_breakpoint_file_opline()
771 …ists\" file=\"%s\" num=\"%d\"", "Breakpoint already exists for %s:%ld", new_break.class_name, opli… in phpdbg_set_breakpoint_file_opline()
772 efree((char*)new_break.class_name); in phpdbg_set_breakpoint_file_opline()
777 PHPDBG_BREAK_MAPPING(new_break.id, file_table); in phpdbg_set_breakpoint_file_opline()
781 zend_hash_index_update_mem(file_table, opline, &new_break, sizeof(phpdbg_breakopline_t)); in phpdbg_set_breakpoint_file_opline()
787 phpdbg_breakop_t new_break; in phpdbg_set_breakpoint_opcode() local
795 PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_OPCODE); in phpdbg_set_breakpoint_opcode()
796 new_break.hash = hash; in phpdbg_set_breakpoint_opcode()
797 new_break.name = estrndup(name, name_len); 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()
803 …phpdbg_notice("breakpoint", "id=\"%d\" opcode=\"%s\"", "Breakpoint #%d added at %s", new_break.id,… in phpdbg_set_breakpoint_opcode()
804 PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE]); in phpdbg_set_breakpoint_opcode()
810 phpdbg_breakline_t new_break; in phpdbg_set_breakpoint_opline_ex() local
814 PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_OPLINE); in phpdbg_set_breakpoint_opline_ex()
815 new_break.opline = (zend_ulong) opline; in phpdbg_set_breakpoint_opline_ex()
816 new_break.base = NULL; 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()
820 …int", "id=\"%d\" opline=\"%#lx\"", "Breakpoint #%d added at %#lx", new_break.id, new_break.opline); 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()
829 phpdbg_breakcond_t new_break; in phpdbg_create_conditional_break() local
848 PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_COND); in phpdbg_create_conditional_break()
849 new_break.hash = hash; in phpdbg_create_conditional_break()
852 new_break.paramed = 1; in phpdbg_create_conditional_break()
854 param, &new_break.param); in phpdbg_create_conditional_break()
855 if (new_break.param.type == FILE_PARAM || in phpdbg_create_conditional_break()
856 new_break.param.type == NUMERIC_FILE_PARAM) { in phpdbg_create_conditional_break()
859 if (VCWD_REALPATH(new_break.param.file.name, realpath)) { in phpdbg_create_conditional_break()
860 efree(new_break.param.file.name); in phpdbg_create_conditional_break()
862 new_break.param.file.name = estrdup(realpath); in phpdbg_create_conditional_break()
864 …, "type=\"invalidparameter\"", "Invalid file for conditional break %s", new_break.param.file.name); in phpdbg_create_conditional_break()
865 phpdbg_clear_param(&new_break.param); in phpdbg_create_conditional_break()
870 new_break.paramed = 0; in phpdbg_create_conditional_break()
877 new_break.code = estrndup(expr, expr_len); in phpdbg_create_conditional_break()
878 new_break.code_len = expr_len; in phpdbg_create_conditional_break()
882 new_break.ops = zend_compile_string(bp_code, "Conditional Breakpoint Code"); in phpdbg_create_conditional_break()
885 if (new_break.ops) { in phpdbg_create_conditional_break()
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()
894 efree((char*)new_break.code); in phpdbg_create_conditional_break()
904 phpdbg_breakcond_t new_break; in phpdbg_set_breakpoint_expression() local
908 &new_break, NULL, expr, expr_len, expr_hash); in phpdbg_set_breakpoint_expression()
916 phpdbg_breakcond_t new_break; in phpdbg_set_breakpoint_at() local
925 phpdbg_create_conditional_break(&new_break, param, condition->str, condition->len, hash); in phpdbg_set_breakpoint_at()