mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
updates to break setting
This commit is contained in:
parent
3955dcf673
commit
cb24989f06
1 changed files with 13 additions and 8 deletions
|
@ -140,7 +140,6 @@ static PHPDBG_COMMAND(eval) /* {{{ */
|
|||
if (expr) {
|
||||
if (zend_eval_stringl((char*)expr, expr_len-1,
|
||||
&retval, "eval()'d code" TSRMLS_CC) == SUCCESS) {
|
||||
printf("Success: ");
|
||||
zend_print_zval_r(&retval, 0 TSRMLS_CC);
|
||||
printf("\n");
|
||||
zval_dtor(&retval);
|
||||
|
@ -268,14 +267,20 @@ static PHPDBG_COMMAND(break) /* {{{ */
|
|||
char path[MAXPATHLEN], resolved_name[MAXPATHLEN];
|
||||
long line_num = strtol(line_pos+1, NULL, 0);
|
||||
|
||||
memcpy(path, expr, line_pos - expr);
|
||||
path[line_pos - expr] = 0;
|
||||
if (line_num) {
|
||||
memcpy(path, expr, line_pos - expr);
|
||||
path[line_pos - expr] = 0;
|
||||
|
||||
if (expand_filepath(path, resolved_name TSRMLS_CC) == NULL) {
|
||||
return FAILURE;
|
||||
if (expand_filepath(path, resolved_name TSRMLS_CC) == NULL) {
|
||||
printf("Failed to expand path %s\n", path);
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
phpdbg_set_breakpoint_file(resolved_name, line_num TSRMLS_CC);
|
||||
} else {
|
||||
printf("No line specified in expression %s\n", expr);
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
phpdbg_set_breakpoint_file(resolved_name, line_num TSRMLS_CC);
|
||||
} else {
|
||||
char name[200];
|
||||
size_t name_len = strlen(expr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue