new_break 230 sapi/phpdbg/phpdbg_bp.c phpdbg_breakfile_t new_break; new_break 252 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_FILE); new_break 253 sapi/phpdbg/phpdbg_bp.c new_break.filename = estrndup(path, path_len); new_break 254 sapi/phpdbg/phpdbg_bp.c new_break.line = line_num; new_break 257 sapi/phpdbg/phpdbg_bp.c broken, line_num, (void**)&new_break, sizeof(phpdbg_breakfile_t), NULL); new_break 260 sapi/phpdbg/phpdbg_bp.c new_break.id, new_break.filename, new_break.line); new_break 262 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_MAPPING(new_break.id, broken); new_break 278 sapi/phpdbg/phpdbg_bp.c phpdbg_breaksymbol_t new_break; new_break 282 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_SYM); new_break 283 sapi/phpdbg/phpdbg_bp.c new_break.symbol = estrndup(name, name_len); new_break 285 sapi/phpdbg/phpdbg_bp.c zend_hash_update(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], new_break.symbol, new_break 286 sapi/phpdbg/phpdbg_bp.c name_len, &new_break, sizeof(phpdbg_breaksymbol_t), NULL); new_break 289 sapi/phpdbg/phpdbg_bp.c new_break.id, new_break.symbol); new_break 291 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_SYM]); new_break 314 sapi/phpdbg/phpdbg_bp.c phpdbg_breakmethod_t new_break; new_break 318 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_METHOD); new_break 319 sapi/phpdbg/phpdbg_bp.c new_break.class_name = estrndup(class_name, class_len); new_break 320 sapi/phpdbg/phpdbg_bp.c new_break.class_len = class_len; new_break 321 sapi/phpdbg/phpdbg_bp.c new_break.func_name = estrndup(func_name, func_len); new_break 322 sapi/phpdbg/phpdbg_bp.c new_break.func_len = func_len; new_break 325 sapi/phpdbg/phpdbg_bp.c &new_break, sizeof(phpdbg_breakmethod_t), NULL); new_break 328 sapi/phpdbg/phpdbg_bp.c new_break.id, class_name, func_name); new_break 330 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_MAPPING(new_break.id, class_table); new_break 341 sapi/phpdbg/phpdbg_bp.c phpdbg_breakline_t new_break; new_break 345 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_OPLINE); new_break 346 sapi/phpdbg/phpdbg_bp.c new_break.name = NULL; new_break 347 sapi/phpdbg/phpdbg_bp.c new_break.opline = opline; new_break 348 sapi/phpdbg/phpdbg_bp.c new_break.base = NULL; new_break 351 sapi/phpdbg/phpdbg_bp.c &new_break, sizeof(phpdbg_breakline_t), NULL); new_break 354 sapi/phpdbg/phpdbg_bp.c new_break.id, new_break.opline); new_break 355 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE]); new_break 437 sapi/phpdbg/phpdbg_bp.c PHPDBG_API int phpdbg_resolve_opline_break(phpdbg_breakopline_t *new_break TSRMLS_DC) /* {{{ */ new_break 442 sapi/phpdbg/phpdbg_bp.c if (new_break->func_name == NULL) { new_break 444 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 445 sapi/phpdbg/phpdbg_bp.c if (phpdbg_resolve_op_array_break(new_break, PHPDBG_G(ops) TSRMLS_CC) == SUCCESS) { new_break 455 sapi/phpdbg/phpdbg_bp.c if (execute_data->op_array->function_name == NULL && execute_data->op_array->scope == NULL && !memcmp(execute_data->op_array->filename, new_break->class_name, new_break->class_len)) { new_break 456 sapi/phpdbg/phpdbg_bp.c if (phpdbg_resolve_op_array_break(new_break, execute_data->op_array TSRMLS_CC) == SUCCESS) { new_break 467 sapi/phpdbg/phpdbg_bp.c if (new_break->class_name != NULL) { new_break 469 sapi/phpdbg/phpdbg_bp.c if (zend_hash_find(EG(class_table), zend_str_tolower_dup(new_break->class_name, new_break->class_len), new_break->class_len + 1, (void **)&ce) == FAILURE) { new_break 475 sapi/phpdbg/phpdbg_bp.c if (zend_hash_find(func_table, zend_str_tolower_dup(new_break->func_name, new_break->func_len), new_break->func_len + 1, (void **)&func) == FAILURE) { new_break 476 sapi/phpdbg/phpdbg_bp.c if (new_break->class_name != NULL && new_break->func_name != NULL) { new_break 477 sapi/phpdbg/phpdbg_bp.c phpdbg_error("Method %s doesn't exist in class %s", new_break->func_name, new_break->class_name); new_break 484 sapi/phpdbg/phpdbg_bp.c if (new_break->class_name == NULL) { new_break 485 sapi/phpdbg/phpdbg_bp.c phpdbg_error("%s is not an user defined function, no oplines exist", new_break->func_name); new_break 487 sapi/phpdbg/phpdbg_bp.c phpdbg_error("%s::%s is not an user defined method, no oplines exist", new_break->class_name, new_break->func_name); new_break 492 sapi/phpdbg/phpdbg_bp.c if (phpdbg_resolve_op_array_break(new_break, &func->op_array TSRMLS_CC) == FAILURE) { new_break 501 sapi/phpdbg/phpdbg_bp.c phpdbg_breakopline_t new_break; new_break 505 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_METHOD_OPLINE); new_break 506 sapi/phpdbg/phpdbg_bp.c new_break.func_len = strlen(method); new_break 507 sapi/phpdbg/phpdbg_bp.c new_break.func_name = estrndup(method, new_break.func_len); new_break 508 sapi/phpdbg/phpdbg_bp.c new_break.class_len = strlen(class); new_break 509 sapi/phpdbg/phpdbg_bp.c new_break.class_name = estrndup(class, new_break.class_len); new_break 510 sapi/phpdbg/phpdbg_bp.c new_break.opline_num = opline; new_break 511 sapi/phpdbg/phpdbg_bp.c new_break.opline = 0; new_break 513 sapi/phpdbg/phpdbg_bp.c switch (phpdbg_resolve_opline_break(&new_break TSRMLS_CC)) { new_break 515 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("Pending breakpoint #%d at %s::%s#%ld", new_break.id, new_break.class_name, new_break.func_name, opline); new_break 519 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("Breakpoint #%d added at %s::%s#%ld", new_break.id, new_break.class_name, new_break.func_name, opline); new_break 526 sapi/phpdbg/phpdbg_bp.c if (zend_hash_find(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD_OPLINE], new_break.class_name, new_break.class_len, (void **)&class_table) == FAILURE) { new_break 530 sapi/phpdbg/phpdbg_bp.c new_break.class_name, new_break 531 sapi/phpdbg/phpdbg_bp.c new_break.class_len, new_break 535 sapi/phpdbg/phpdbg_bp.c if (zend_hash_find(class_table, new_break.func_name, new_break.func_len, (void **)&method_table) == FAILURE) { new_break 539 sapi/phpdbg/phpdbg_bp.c new_break.func_name, new_break 540 sapi/phpdbg/phpdbg_bp.c new_break.func_len, new_break 545 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("Breakpoint already exists for %s::%s#%ld", new_break.class_name, new_break.func_name, opline); new_break 546 sapi/phpdbg/phpdbg_bp.c efree((char*)new_break.func_name); new_break 547 sapi/phpdbg/phpdbg_bp.c efree((char*)new_break.class_name); new_break 554 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_MAPPING(new_break.id, method_table); new_break 556 sapi/phpdbg/phpdbg_bp.c zend_hash_index_update(method_table, opline, &new_break, sizeof(phpdbg_breakopline_t), NULL); new_break 561 sapi/phpdbg/phpdbg_bp.c phpdbg_breakopline_t new_break; new_break 564 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_FUNCTION_OPLINE); new_break 565 sapi/phpdbg/phpdbg_bp.c new_break.func_len = strlen(function); new_break 566 sapi/phpdbg/phpdbg_bp.c new_break.func_name = estrndup(function, new_break.func_len); new_break 567 sapi/phpdbg/phpdbg_bp.c new_break.class_len = 0; new_break 568 sapi/phpdbg/phpdbg_bp.c new_break.class_name = NULL; new_break 569 sapi/phpdbg/phpdbg_bp.c new_break.opline_num = opline; new_break 570 sapi/phpdbg/phpdbg_bp.c new_break.opline = 0; new_break 572 sapi/phpdbg/phpdbg_bp.c switch (phpdbg_resolve_opline_break(&new_break TSRMLS_CC)) { new_break 574 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("Pending breakpoint #%d at %s#%ld", new_break.id, new_break.func_name, opline); new_break 578 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("Breakpoint #%d added at %s#%ld", new_break.id, new_break.func_name, opline); new_break 585 sapi/phpdbg/phpdbg_bp.c if (zend_hash_find(&PHPDBG_G(bp)[PHPDBG_BREAK_FUNCTION_OPLINE], new_break.func_name, new_break.func_len, (void **)&func_table) == FAILURE) { new_break 589 sapi/phpdbg/phpdbg_bp.c new_break.func_name, new_break 590 sapi/phpdbg/phpdbg_bp.c new_break.func_len, new_break 595 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("Breakpoint already exists for %s#%ld", new_break.func_name, opline); new_break 596 sapi/phpdbg/phpdbg_bp.c efree((char*)new_break.func_name); new_break 601 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_MAPPING(new_break.id, func_table); new_break 605 sapi/phpdbg/phpdbg_bp.c zend_hash_index_update(func_table, opline, &new_break, sizeof(phpdbg_breakopline_t), NULL); new_break 610 sapi/phpdbg/phpdbg_bp.c phpdbg_breakopline_t new_break; new_break 613 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_FILE_OPLINE); new_break 614 sapi/phpdbg/phpdbg_bp.c new_break.func_len = 0; new_break 615 sapi/phpdbg/phpdbg_bp.c new_break.func_name = NULL; new_break 616 sapi/phpdbg/phpdbg_bp.c new_break.class_len = strlen(file); new_break 617 sapi/phpdbg/phpdbg_bp.c new_break.class_name = estrndup(file, new_break.class_len); new_break 618 sapi/phpdbg/phpdbg_bp.c new_break.opline_num = opline; new_break 619 sapi/phpdbg/phpdbg_bp.c new_break.opline = 0; new_break 621 sapi/phpdbg/phpdbg_bp.c switch (phpdbg_resolve_opline_break(&new_break TSRMLS_CC)) { new_break 623 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("Pending breakpoint #%d at %s:%ld", new_break.id, new_break.class_name, opline); new_break 627 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("Breakpoint #%d added at %s:%ld", new_break.id, new_break.class_name, opline); new_break 634 sapi/phpdbg/phpdbg_bp.c if (zend_hash_find(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_OPLINE], new_break.class_name, new_break.class_len, (void **)&file_table) == FAILURE) { new_break 638 sapi/phpdbg/phpdbg_bp.c new_break.class_name, new_break 639 sapi/phpdbg/phpdbg_bp.c new_break.class_len, new_break 644 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("Breakpoint already exists for %s:%ld", new_break.class_name, opline); new_break 645 sapi/phpdbg/phpdbg_bp.c efree((char*)new_break.class_name); new_break 650 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_MAPPING(new_break.id, file_table); new_break 654 sapi/phpdbg/phpdbg_bp.c zend_hash_index_update(file_table, opline, &new_break, sizeof(phpdbg_breakopline_t), NULL); new_break 659 sapi/phpdbg/phpdbg_bp.c phpdbg_breakop_t new_break; new_break 668 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_OPCODE); new_break 669 sapi/phpdbg/phpdbg_bp.c new_break.hash = hash; new_break 670 sapi/phpdbg/phpdbg_bp.c new_break.name = estrndup(name, name_len); new_break 673 sapi/phpdbg/phpdbg_bp.c &new_break, sizeof(phpdbg_breakop_t), NULL); new_break 677 sapi/phpdbg/phpdbg_bp.c phpdbg_notice("Breakpoint #%d added at %s", new_break.id, name); new_break 678 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_OPCODE]); new_break 684 sapi/phpdbg/phpdbg_bp.c phpdbg_breakline_t new_break; new_break 688 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_OPLINE); new_break 689 sapi/phpdbg/phpdbg_bp.c new_break.opline = (zend_ulong) opline; new_break 690 sapi/phpdbg/phpdbg_bp.c new_break.base = NULL; new_break 693 sapi/phpdbg/phpdbg_bp.c (zend_ulong) opline, &new_break, sizeof(phpdbg_breakline_t), NULL); new_break 696 sapi/phpdbg/phpdbg_bp.c new_break.id, new_break.opline); new_break 697 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE]); new_break 703 sapi/phpdbg/phpdbg_bp.c phpdbg_breakcond_t new_break; new_break 707 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_COND); new_break 708 sapi/phpdbg/phpdbg_bp.c new_break.hash = hash; new_break 711 sapi/phpdbg/phpdbg_bp.c new_break.paramed = 1; new_break 713 sapi/phpdbg/phpdbg_bp.c param, &new_break.param TSRMLS_CC); new_break 715 sapi/phpdbg/phpdbg_bp.c new_break.paramed = 0; new_break 722 sapi/phpdbg/phpdbg_bp.c new_break.code = estrndup(expr, expr_len); new_break 723 sapi/phpdbg/phpdbg_bp.c new_break.code_len = expr_len; new_break 733 sapi/phpdbg/phpdbg_bp.c new_break.ops = zend_compile_string( new_break 738 sapi/phpdbg/phpdbg_bp.c if (new_break.ops) { new_break 740 sapi/phpdbg/phpdbg_bp.c &PHPDBG_G(bp)[PHPDBG_BREAK_COND], hash, &new_break, new_break 747 sapi/phpdbg/phpdbg_bp.c PHPDBG_BREAK_MAPPING(new_break.id, &PHPDBG_G(bp)[PHPDBG_BREAK_COND]); new_break 751 sapi/phpdbg/phpdbg_bp.c efree((char*)new_break.code); new_break 760 sapi/phpdbg/phpdbg_bp.c phpdbg_breakcond_t new_break; new_break 764 sapi/phpdbg/phpdbg_bp.c &new_break, NULL, expr, expr_len, expr_hash TSRMLS_CC); new_break 772 sapi/phpdbg/phpdbg_bp.c phpdbg_breakcond_t new_break; new_break 782 sapi/phpdbg/phpdbg_bp.c &new_break, param, new_break 109 sapi/phpdbg/phpdbg_bp.h PHPDBG_API int phpdbg_resolve_opline_break(phpdbg_breakopline_t *new_break TSRMLS_DC); /* }}} */