diff options
author | Xinchen Hui <laruence@php.net> | 2014-08-28 17:03:27 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2014-08-28 17:03:27 +0800 |
commit | 537344161f9d1528d9c8095883def9519fc8f99e (patch) | |
tree | 25329295f9661ab33e908c9b235179f2b091993f /.gdbinit | |
parent | bc3d9b3ba29c8f29bf3247f7718a03a484093615 (diff) | |
download | php-git-537344161f9d1528d9c8095883def9519fc8f99e.tar.gz |
Fixed zbacktrace
Diffstat (limited to '.gdbinit')
-rw-r--r-- | .gdbinit | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -48,7 +48,7 @@ define print_cvs end define dump_bt - set $ex = $arg0->prev_execute_data + set $ex = $arg0 while $ex printf "[%p] ", $ex set $func = $ex->func @@ -65,7 +65,11 @@ define dump_bt end end - printf "%s(", $func->common.function_name->val + if $func->common.function_name + printf "%s(", $func->common.function_name->val + else + printf "(main" + end set $callFrameSize = (sizeof(zend_execute_data) + sizeof(zval) - 1) / sizeof(zval) @@ -119,7 +123,11 @@ define dump_bt printf "??? " end if $func != 0 - printf "%s:%d ", $func->op_array.filename->val, $ex->opline->lineno + if $func->type == 2 + printf "%s:%d ", $func->op_array.filename->val, $ex->opline->lineno + else + printf "[internal function]" + end end set $ex = $ex->prev_execute_data printf "\n" |