File tree 1 file changed +11
-3
lines changed 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ define print_cvs
48
48
end
49
49
50
50
define dump_bt
51
- set $ex = $arg0 ->prev_execute_data
51
+ set $ex = $arg0
52
52
while $ex
53
53
printf " [%p] " , $ex
54
54
set $func = $ex ->func
@@ -65,7 +65,11 @@ define dump_bt
65
65
end
66
66
end
67
67
68
- printf " %s(" , $func ->common .function_name->val
68
+ if $func ->common .function_name
69
+ printf " %s(" , $func ->common .function_name->val
70
+ else
71
+ printf " (main"
72
+ end
69
73
70
74
set $callFrameSize = (sizeof(zend_execute_data) + sizeof(zval) - 1 ) / sizeof(zval)
71
75
@@ -119,7 +123,11 @@ define dump_bt
119
123
printf " ??? "
120
124
end
121
125
if $func != 0
122
- printf " %s:%d " , $func ->op_array.filename->val, $ex ->opline->lineno
126
+ if $func ->type == 2
127
+ printf " %s:%d " , $func ->op_array.filename->val, $ex ->opline->lineno
128
+ else
129
+ printf " [internal function]"
130
+ end
123
131
end
124
132
set $ex = $ex ->prev_execute_data
125
133
printf " \n "
You can’t perform that action at this time.
0 commit comments