summaryrefslogtreecommitdiff
path: root/.gdbinit
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2007-02-08 15:28:43 +0000
committerMarcus Boerger <helly@php.net>2007-02-08 15:28:43 +0000
commitd455f0b64475ffb7c052342c7fd512fdf86ee494 (patch)
tree4b8eedfcdaef822f3e17a6611ec6a5dea7f881e4 /.gdbinit
parent72bf3e2037fa9b0d71738b2f49016b18fd3c3dc5 (diff)
downloadphp-git-d455f0b64475ffb7c052342c7fd512fdf86ee494.tar.gz
- Show whether a zval is a reference in printzv user command
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit6
1 files changed, 5 insertions, 1 deletions
diff --git a/.gdbinit b/.gdbinit
index bdb5c69066..5b11d4c26d 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -95,7 +95,11 @@ define ____printzv_contents
set $zvalue = $arg0
set $type = $zvalue->type
- printf "(refcount=%d) ", $zvalue->refcount
+ printf "(refcount=%d", $zvalue->refcount
+ if $zvalue->is_ref
+ printf ",is_ref"
+ end
+ printf ") "
if $type == 0
printf "NULL"
end