com php-src: A few more fixes and improvements for gdbinit: .gdbinit
| From: | Nikita Popov | Date: | Wed, 28 May 2014 22:15:50 +0000 |
| Subject: | com php-src: A few more fixes and improvements for gdbinit: .gdbinit | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-78623@lists.php.net to get a copy of this message | ||
Commit: afd8a02160b4773a44f9898557e6eb0ec46f64fc
Author: Nikita Popov <nikic@php.net> Wed, 28 May 2014 22:43:53 +0200
Parents: 411a8757ad0aa01d9634e8e32df4dd4327eb5978
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=afd8a02160b4773a44f9898557e6eb0ec46f64fc
Log:
A few more fixes and improvements for gdbinit
Changed paths:
M .gdbinit
Diff:
diff --git a/.gdbinit b/.gdbinit
index b9913fb..4bad7de 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 " "