summaryrefslogtreecommitdiff
path: root/.gdbinit
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2014-05-28 22:43:53 +0200
committerNikita Popov <nikic@php.net>2014-05-29 00:15:50 +0200
commitafd8a02160b4773a44f9898557e6eb0ec46f64fc (patch)
tree7f77fe294cb35c95e7c05edefb091e9f69dae4bf /.gdbinit
parent411a8757ad0aa01d9634e8e32df4dd4327eb5978 (diff)
downloadphp-git-afd8a02160b4773a44f9898557e6eb0ec46f64fc.tar.gz
A few more fixes and improvements for gdbinit
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit15
1 files changed, 8 insertions, 7 deletions
diff --git a/.gdbinit b/.gdbinit
index b9913fbc89..4bad7dee79 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -168,8 +168,7 @@ define ____printzv_contents
set $type = $zvalue->u1.v.type
if $type >= 7
- printf "(refcount=%d", $zvalue->value.counted->refcount
- printf ") "
+ printf "(refcount=%d) ", $zvalue->value.counted->refcount
else
printf "(refcount=NaN) "
end
@@ -239,7 +238,8 @@ define ____printzv_contents
printf "resource: #%d", $zvalue->value.res->handle
end
if $type == 10
- printf "reference: %p", $zvalue->value.ref
+ printf "reference: "
+ ____printzv &$zvalue->value.ref->val $arg1
end
if $type == 11
printf "const: %s", $zvalue->value.str->val
@@ -254,7 +254,8 @@ define ____printzv_contents
printf "IS_CALLABLE"
end
if $type == 15
- printf "indirect: %p", (void *) $zvalue->value.zv
+ printf "indirect: "
+ ____printzv $zvalue->value.zv $arg1
end
if $type == 16
printf "string_offset"
@@ -321,7 +322,7 @@ define ____print_ht
printf " "
set $n = $n - 1
end
- if $ht->flags & 4
+ if $ht->u.v.flags & 4
set $num = $ht->nNumUsed
set $i = 0
printf "Packed(%d)[%p]: {\n", $ht->nNumOfElements, $ht
@@ -329,7 +330,7 @@ define ____print_ht
while $i < $num
set $p = (Bucket*)($ht->arData + $i)
set $n = $ind
- if $p->val.type > 0
+ if $p->val.u1.v.type > 0
while $n > 0
printf " "
set $n = $n - 1
@@ -364,7 +365,7 @@ define ____print_ht
set $hash = $ht->arHash[$i]
if $hash != -1
set $p = (Bucket*)($ht->arData + $hash)
- if $p->val.type > 0
+ if $p->val.u1.v.type > 0
set $n = $ind
while $n > 0
printf " "