new_break 242 sapi/phpdbg/phpdbg_bp.c phpdbg_breakfile_t new_break; new_break 281 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_FILE); new_break 282 sapi/phpdbg/phpdbg_bp.c new_break.filename = estrndup(path, path_len); new_break 283 sapi/phpdbg/phpdbg_bp.c new_break.line = line_num; new_break 285 sapi/phpdbg/phpdbg_bp.c zend_hash_index_update_mem(broken, line_num, &new_break, sizeof(phpdbg_breakfile_t)); new_break 287 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_MAPPING(new_break.id, broken); new_break 297 sapi/phpdbg/phpdbg_bp.c new_break = *(phpdbg_breakfile_t *) zend_hash_index_find_ptr(fileht, line_num); new_break 306 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("breakpoint", "add=\"success\" id=\"%d\" file=\"%s\" line=\"%ld\" pending=\"pending\"", "Pending breakpoint #%d added at %s:%ld", new_break.id, new_break.filename, new_break.line); new_break 310 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("breakpoint", "add=\"success\" id=\"%d\" file=\"%s\" line=\"%ld\"", "Breakpoint #%d added at %s:%ld", new_break.id, new_break.filename, new_break.line); new_break 392 sapi/phpdbg/phpdbg_bp.c phpdbg_breaksymbol_t new_break; new_break 396 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_SYM); new_break 397 sapi/phpdbg/phpdbg_bp.c new_break.symbol = estrndup(name, name_len); new_break 399 sapi/phpdbg/phpdbg_bp.c zend_hash_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], lcname, name_len, &new_break, sizeof(phpdbg_breaksymbol_t)); new_break 401 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("breakpoint", "add=\"success\" id=\"%d\" function=\"%s\"", "Breakpoint #%d added at %s", new_break.id, new_break.symbol); new_break 403 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_SYM]); new_break 432 sapi/phpdbg/phpdbg_bp.c phpdbg_breakmethod_t new_break; new_break 436 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_METHOD); new_break 437 sapi/phpdbg/phpdbg_bp.c new_break.class_name = estrndup(class_name, class_len); new_break 438 sapi/phpdbg/phpdbg_bp.c new_break.class_len = class_len; new_break 439 sapi/phpdbg/phpdbg_bp.c new_break.func_name = estrndup(func_name, func_len); new_break 440 sapi/phpdbg/phpdbg_bp.c new_break.func_len = func_len; new_break 442 sapi/phpdbg/phpdbg_bp.c zend_hash_str_update_mem(class_table, func_lcname, func_len, &new_break, sizeof(phpdbg_breakmethod_t)); new_break 444 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("breakpoint", "add=\"success\" id=\"%d\" method=\"%s::%s\"", "Breakpoint #%d added at %s::%s", new_break.id, class_name, func_name); new_break 446 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_MAPPING(new_break.id, class_table); new_break 458 sapi/phpdbg/phpdbg_bp.c phpdbg_breakline_t new_break; new_break 462 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_OPLINE); new_break 463 sapi/phpdbg/phpdbg_bp.c new_break.name = NULL; new_break 464 sapi/phpdbg/phpdbg_bp.c new_break.opline = opline; new_break 465 sapi/phpdbg/phpdbg_bp.c new_break.base = NULL; new_break 467 sapi/phpdbg/phpdbg_bp.c zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], opline, &new_break, sizeof(phpdbg_breakline_t)); new_break 469 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("breakpoint", "add=\"success\" id=\"%d\" opline=\"%#lx\"", "Breakpoint #%d added at %#lx", new_break.id, new_break.opline); new_break 470 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE]); new_break 548 sapi/phpdbg/phpdbg_bp.c PHPDBG_API int phpdbg_resolve_opline_break(phpdbg_breakopline_t *new_break) /* {{{ */ new_break 553 sapi/phpdbg/phpdbg_bp.c if (new_break->func_name == NULL) { new_break 555 sapi/phpdbg/phpdbg_bp.c if (PHPDBG_G(ops) != NULL && !memcmp(PHPDBG_G(ops)->filename, new_break->class_name, new_break->class_len)) { new_break 556 sapi/phpdbg/phpdbg_bp.c if (phpdbg_resolve_op_array_break(new_break, PHPDBG_G(ops)) == SUCCESS) { new_break 568 sapi/phpdbg/phpdbg_bp.c if (op_array->function_name == NULL && op_array->scope == NULL && new_break->class_len == ZSTR_LEN(op_array->filename) && !memcmp(ZSTR_VAL(op_array->filename), new_break->class_name, new_break->class_len)) { new_break 569 sapi/phpdbg/phpdbg_bp.c if (phpdbg_resolve_op_array_break(new_break, op_array) == SUCCESS) { new_break 581 sapi/phpdbg/phpdbg_bp.c if (new_break->class_name != NULL) { new_break 583 sapi/phpdbg/phpdbg_bp.c if (!(ce = zend_hash_str_find_ptr(EG(class_table), zend_str_tolower_dup(new_break->class_name, new_break->class_len), new_break->class_len))) { new_break 589 sapi/phpdbg/phpdbg_bp.c if (!(func = zend_hash_str_find_ptr(func_table, zend_str_tolower_dup(new_break->func_name, new_break->func_len), new_break->func_len))) { new_break 590 sapi/phpdbg/phpdbg_bp.c if (new_break->class_name != NULL && new_break->func_name != NULL) { new_break 591 sapi/phpdbg/phpdbg_bp.c phpdbg_error("breakpoint", "type=\"nomethod\" method=\"%s::%s\"", "Method %s doesn't exist in class %s", new_break->func_name, new_break->class_name); new_break 598 sapi/phpdbg/phpdbg_bp.c if (new_break->class_name == NULL) { new_break 599 sapi/phpdbg/phpdbg_bp.c phpdbg_error("breakpoint", "type=\"internalfunction\" function=\"%s\"", "%s is not a user defined function, no oplines exist", new_break->func_name); new_break 601 sapi/phpdbg/phpdbg_bp.c phpdbg_error("breakpoint", "type=\"internalfunction\" method=\"%s::%s\"", "%s::%s is not a user defined method, no oplines exist", new_break->class_name, new_break->func_name); new_break 606 sapi/phpdbg/phpdbg_bp.c if (phpdbg_resolve_op_array_break(new_break, &func->op_array) == FAILURE) { new_break 617 sapi/phpdbg/phpdbg_bp.c phpdbg_breakopline_t new_break; new_break 621 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_METHOD_OPLINE); new_break 622 sapi/phpdbg/phpdbg_bp.c new_break.func_len = strlen(method); new_break 623 sapi/phpdbg/phpdbg_bp.c new_break.func_name = estrndup(method, new_break.func_len); new_break 624 sapi/phpdbg/phpdbg_bp.c new_break.class_len = strlen(class); new_break 625 sapi/phpdbg/phpdbg_bp.c new_break.class_name = estrndup(class, new_break.class_len); new_break 626 sapi/phpdbg/phpdbg_bp.c new_break.opline_num = opline; new_break 627 sapi/phpdbg/phpdbg_bp.c new_break.opline = 0; new_break 629 sapi/phpdbg/phpdbg_bp.c switch (phpdbg_resolve_opline_break(&new_break)) { new_break 631 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("breakpoint", "pending=\"pending\" id=\"%d\" method=\"%::%s\" num=\"%ld\"", "Pending breakpoint #%d at %s::%s#%ld", new_break.id, new_break.class_name, new_break.func_name, opline); new_break 635 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("breakpoint", "id=\"%d\" method=\"%::%s\" num=\"%ld\"", "Breakpoint #%d added at %s::%s#%ld", new_break.id, new_break.class_name, new_break.func_name, opline); new_break 642 sapi/phpdbg/phpdbg_bp.c if (!(class_table = zend_hash_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD_OPLINE], new_break.class_name, new_break.class_len))) { new_break 644 sapi/phpdbg/phpdbg_bp.c class_table = zend_hash_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD_OPLINE], new_break.class_name, new_break.class_len, &class_breaks, sizeof(HashTable)); new_break 647 sapi/phpdbg/phpdbg_bp.c if (!(method_table = zend_hash_str_find_ptr(class_table, new_break.func_name, new_break.func_len))) { new_break 649 sapi/phpdbg/phpdbg_bp.c method_table = zend_hash_str_update_mem(class_table, new_break.func_name, new_break.func_len, &method_breaks, sizeof(HashTable)); new_break 653 sapi/phpdbg/phpdbg_bp.c phpdbg_error("breakpoint", "type=\"exists\" method=\"%s\" num=\"%ld\"", "Breakpoint already exists for %s::%s#%ld", new_break.class_name, new_break.func_name, opline); new_break 654 sapi/phpdbg/phpdbg_bp.c efree((char*)new_break.func_name); new_break 655 sapi/phpdbg/phpdbg_bp.c efree((char*)new_break.class_name); new_break 662 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_MAPPING(new_break.id, method_table); new_break 664 sapi/phpdbg/phpdbg_bp.c zend_hash_index_update_mem(method_table, opline, &new_break, sizeof(phpdbg_breakopline_t)); new_break 670 sapi/phpdbg/phpdbg_bp.c phpdbg_breakopline_t new_break; new_break 673 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_FUNCTION_OPLINE); new_break 674 sapi/phpdbg/phpdbg_bp.c new_break.func_len = strlen(function); new_break 675 sapi/phpdbg/phpdbg_bp.c new_break.func_name = estrndup(function, new_break.func_len); new_break 676 sapi/phpdbg/phpdbg_bp.c new_break.class_len = 0; new_break 677 sapi/phpdbg/phpdbg_bp.c new_break.class_name = NULL; new_break 678 sapi/phpdbg/phpdbg_bp.c new_break.opline_num = opline; new_break 679 sapi/phpdbg/phpdbg_bp.c new_break.opline = 0; new_break 681 sapi/phpdbg/phpdbg_bp.c switch (phpdbg_resolve_opline_break(&new_break)) { new_break 683 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("breakpoint", "pending=\"pending\" id=\"%d\" function=\"%s\" num=\"%ld\"", "Pending breakpoint #%d at %s#%ld", new_break.id, new_break.func_name, opline); new_break 687 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("breakpoint", "id=\"%d\" function=\"%s\" num=\"%ld\"", "Breakpoint #%d added at %s#%ld", new_break.id, new_break.func_name, opline); new_break 694 sapi/phpdbg/phpdbg_bp.c if (!(func_table = zend_hash_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_FUNCTION_OPLINE], new_break.func_name, new_break.func_len))) { new_break 696 sapi/phpdbg/phpdbg_bp.c func_table = zend_hash_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_FUNCTION_OPLINE], new_break.func_name, new_break.func_len, &func_breaks, sizeof(HashTable)); new_break 700 sapi/phpdbg/phpdbg_bp.c phpdbg_error("breakpoint", "type=\"exists\" function=\"%s\" num=\"%ld\"", "Breakpoint already exists for %s#%ld", new_break.func_name, opline); new_break 701 sapi/phpdbg/phpdbg_bp.c efree((char*)new_break.func_name); new_break 706 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_MAPPING(new_break.id, func_table); new_break 710 sapi/phpdbg/phpdbg_bp.c zend_hash_index_update_mem(func_table, opline, &new_break, sizeof(phpdbg_breakopline_t)); new_break 716 sapi/phpdbg/phpdbg_bp.c phpdbg_breakopline_t new_break; new_break 719 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_FILE_OPLINE); new_break 720 sapi/phpdbg/phpdbg_bp.c new_break.func_len = 0; new_break 721 sapi/phpdbg/phpdbg_bp.c new_break.func_name = NULL; new_break 722 sapi/phpdbg/phpdbg_bp.c new_break.class_len = strlen(file); new_break 723 sapi/phpdbg/phpdbg_bp.c new_break.class_name = estrndup(file, new_break.class_len); new_break 724 sapi/phpdbg/phpdbg_bp.c new_break.opline_num = opline; new_break 725 sapi/phpdbg/phpdbg_bp.c new_break.opline = 0; new_break 727 sapi/phpdbg/phpdbg_bp.c switch (phpdbg_resolve_opline_break(&new_break)) { new_break 729 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("breakpoint", "pending=\"pending\" id=\"%d\" file=\"%s\" num=\"%ld\"", "Pending breakpoint #%d at %s:%ld", new_break.id, new_break.class_name, opline); new_break 733 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("breakpoint", "id=\"%d\" file=\"%s\" num=\"%ld\"", "Breakpoint #%d added at %s:%ld", new_break.id, new_break.class_name, opline); new_break 740 sapi/phpdbg/phpdbg_bp.c if (!(file_table = zend_hash_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_OPLINE], new_break.class_name, new_break.class_len))) { new_break 742 sapi/phpdbg/phpdbg_bp.c file_table = zend_hash_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_OPLINE], new_break.class_name, new_break.class_len, &file_breaks, sizeof(HashTable)); new_break 746 sapi/phpdbg/phpdbg_bp.c phpdbg_error("breakpoint", "type=\"exists\" file=\"%s\" num=\"%d\"", "Breakpoint already exists for %s:%ld", new_break.class_name, opline); new_break 747 sapi/phpdbg/phpdbg_bp.c efree((char*)new_break.class_name); new_break 752 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_MAPPING(new_break.id, file_table); new_break 756 sapi/phpdbg/phpdbg_bp.c zend_hash_index_update_mem(file_table, opline, &new_break, sizeof(phpdbg_breakopline_t)); new_break 762 sapi/phpdbg/phpdbg_bp.c phpdbg_breakop_t new_break; new_break 770 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_OPCODE); new_break 771 sapi/phpdbg/phpdbg_bp.c new_break.hash = hash; new_break 772 sapi/phpdbg/phpdbg_bp.c new_break.name = estrndup(name, name_len); new_break 774 sapi/phpdbg/phpdbg_bp.c zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE], hash, &new_break, sizeof(phpdbg_breakop_t)); new_break 778 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("breakpoint", "id=\"%d\" opcode=\"%s\"", "Breakpoint #%d added at %s", new_break.id, name); new_break 779 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE]); new_break 785 sapi/phpdbg/phpdbg_bp.c phpdbg_breakline_t new_break; new_break 789 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_OPLINE); new_break 790 sapi/phpdbg/phpdbg_bp.c new_break.opline = (zend_ulong) opline; new_break 791 sapi/phpdbg/phpdbg_bp.c new_break.base = NULL; new_break 793 sapi/phpdbg/phpdbg_bp.c zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], (zend_ulong) opline, &new_break, sizeof(phpdbg_breakline_t)); new_break 795 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("breakpoint", "id=\"%d\" opline=\"%#lx\"", "Breakpoint #%d added at %#lx", new_break.id, new_break.opline); new_break 796 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE]); new_break 804 sapi/phpdbg/phpdbg_bp.c phpdbg_breakcond_t new_break; new_break 808 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_COND); new_break 809 sapi/phpdbg/phpdbg_bp.c new_break.hash = hash; new_break 812 sapi/phpdbg/phpdbg_bp.c new_break.paramed = 1; new_break 814 sapi/phpdbg/phpdbg_bp.c param, &new_break.param); new_break 816 sapi/phpdbg/phpdbg_bp.c new_break.paramed = 0; new_break 823 sapi/phpdbg/phpdbg_bp.c new_break.code = estrndup(expr, expr_len); new_break 824 sapi/phpdbg/phpdbg_bp.c new_break.code_len = expr_len; new_break 833 sapi/phpdbg/phpdbg_bp.c new_break.ops = zend_compile_string(&pv, "Conditional Breakpoint Code"); new_break 837 sapi/phpdbg/phpdbg_bp.c if (new_break.ops) { new_break 838 sapi/phpdbg/phpdbg_bp.c brake = zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_COND], hash, &new_break, sizeof(phpdbg_breakcond_t)); new_break 843 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_COND]); new_break 846 sapi/phpdbg/phpdbg_bp.c efree((char*)new_break.code); new_break 856 sapi/phpdbg/phpdbg_bp.c phpdbg_breakcond_t new_break; new_break 860 sapi/phpdbg/phpdbg_bp.c &new_break, NULL, expr, expr_len, expr_hash); new_break 868 sapi/phpdbg/phpdbg_bp.c phpdbg_breakcond_t new_break; new_break 877 sapi/phpdbg/phpdbg_bp.c phpdbg_create_conditional_break(&new_break, param, condition->str, condition->len, hash); new_break 123 sapi/phpdbg/phpdbg_bp.h PHPDBG_API int phpdbg_resolve_opline_break(phpdbg_breakopline_t *new_break);