mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
- CS
This commit is contained in:
parent
422f80e87d
commit
d2ded767c6
1 changed files with 11 additions and 8 deletions
15
phpdbg_bp.c
15
phpdbg_bp.c
|
@ -351,7 +351,8 @@ PHPDBG_API void phpdbg_set_breakpoint_opline(zend_ulong opline TSRMLS_DC) /* {{{
|
||||||
}
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
PHPDBG_API int phpdbg_resolve_op_array_break(phpdbg_breakopline_t *brake, zend_op_array *op_array TSRMLS_DC) {
|
PHPDBG_API int phpdbg_resolve_op_array_break(phpdbg_breakopline_t *brake, zend_op_array *op_array TSRMLS_DC) /* {{{ */
|
||||||
|
{
|
||||||
phpdbg_breakline_t opline_break;
|
phpdbg_breakline_t opline_break;
|
||||||
if (op_array->last < brake->opline_num) {
|
if (op_array->last < brake->opline_num) {
|
||||||
if (brake->class_name == NULL) {
|
if (brake->class_name == NULL) {
|
||||||
|
@ -384,9 +385,10 @@ PHPDBG_API int phpdbg_resolve_op_array_break(phpdbg_breakopline_t *brake, zend_o
|
||||||
zend_hash_index_update(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], opline_break.opline, &opline_break, sizeof(phpdbg_breakline_t), NULL);
|
zend_hash_index_update(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], opline_break.opline, &opline_break, sizeof(phpdbg_breakline_t), NULL);
|
||||||
|
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
} /* }}} */
|
||||||
|
|
||||||
PHPDBG_API void phpdbg_resolve_op_array_breaks(zend_op_array *op_array TSRMLS_DC) {
|
PHPDBG_API void phpdbg_resolve_op_array_breaks(zend_op_array *op_array TSRMLS_DC) /* {{{ */
|
||||||
|
{
|
||||||
HashTable *func_table = &PHPDBG_G(bp)[PHPDBG_BREAK_FUNCTION_OPLINE];
|
HashTable *func_table = &PHPDBG_G(bp)[PHPDBG_BREAK_FUNCTION_OPLINE];
|
||||||
HashTable *oplines_table;
|
HashTable *oplines_table;
|
||||||
HashPosition position;
|
HashPosition position;
|
||||||
|
@ -423,9 +425,10 @@ PHPDBG_API void phpdbg_resolve_op_array_breaks(zend_op_array *op_array TSRMLS_DC
|
||||||
brake->opline);
|
brake->opline);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} /* }}} */
|
||||||
|
|
||||||
PHPDBG_API int phpdbg_resolve_opline_break(phpdbg_breakopline_t *new_break TSRMLS_DC) {
|
PHPDBG_API int phpdbg_resolve_opline_break(phpdbg_breakopline_t *new_break TSRMLS_DC) /* {{{ */
|
||||||
|
{
|
||||||
HashTable *func_table = EG(function_table);
|
HashTable *func_table = EG(function_table);
|
||||||
zend_function *func;
|
zend_function *func;
|
||||||
|
|
||||||
|
@ -484,7 +487,7 @@ PHPDBG_API int phpdbg_resolve_opline_break(phpdbg_breakopline_t *new_break TSRML
|
||||||
}
|
}
|
||||||
|
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
} /* }}} */
|
||||||
|
|
||||||
PHPDBG_API void phpdbg_set_breakpoint_method_opline(const char *class, const char *method, zend_ulong opline TSRMLS_DC) /* {{{ */
|
PHPDBG_API void phpdbg_set_breakpoint_method_opline(const char *class, const char *method, zend_ulong opline TSRMLS_DC) /* {{{ */
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue