mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
introduce proper support for file:#opline
This commit is contained in:
parent
a6eee49326
commit
c3a897bf3d
8 changed files with 124 additions and 96 deletions
23
phpdbg_cmd.c
23
phpdbg_cmd.c
|
@ -418,6 +418,10 @@ PHPDBG_API void phpdbg_param_debug(const phpdbg_param_t *param, const char *msg)
|
|||
fprintf(stderr, "%s ADDR_PARAM(%lu)\n", msg, param->addr);
|
||||
break;
|
||||
|
||||
case NUMERIC_FILE_PARAM:
|
||||
fprintf(stderr, "%s NUMERIC_FILE_PARAM(%s:#%lu)\n", msg, param->file.name, param->file.line);
|
||||
break;
|
||||
|
||||
case FILE_PARAM:
|
||||
fprintf(stderr, "%s FILE_PARAM(%s:%lu)\n", msg, param->file.name, param->file.line);
|
||||
break;
|
||||
|
@ -465,16 +469,25 @@ PHPDBG_API void phpdbg_stack_free(phpdbg_param_t *stack) {
|
|||
next = remove->next;
|
||||
|
||||
switch (remove->type) {
|
||||
case STR_PARAM:
|
||||
if (remove->str) {
|
||||
case NUMERIC_METHOD_PARAM:
|
||||
case METHOD_PARAM:
|
||||
if (remove->method.class)
|
||||
free(remove->method.class);
|
||||
if (remove->method.name)
|
||||
free(remove->method.name);
|
||||
break;
|
||||
|
||||
case NUMERIC_FUNCTION_PARAM:
|
||||
case STR_PARAM:
|
||||
case OP_PARAM:
|
||||
if (remove->str)
|
||||
free(remove->str);
|
||||
}
|
||||
break;
|
||||
|
||||
case NUMERIC_FILE_PARAM:
|
||||
case FILE_PARAM:
|
||||
if (remove->file.name) {
|
||||
if (remove->file.name)
|
||||
free(remove->file.name);
|
||||
}
|
||||
break;
|
||||
|
||||
default: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue