summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-02-10 19:19:09 +0100
committerNikita Popov <nikita.ppv@gmail.com>2018-02-10 19:19:09 +0100
commite87283fa3f94b53a139f3bcb5ff8a8030594b8dc (patch)
tree82fcbdb39f3cd7476d3b62822e6779d0782edba5
parent7aac61ce762b2658263f605dd4d910f6914b7129 (diff)
parent01f7998db0ddf620233dbfe35d3344758876d78d (diff)
downloadphp-git-e87283fa3f94b53a139f3bcb5ff8a8030594b8dc.tar.gz
Merge branch 'PHP-7.1' into PHP-7.2
-rw-r--r--.gdbinit13
1 files changed, 11 insertions, 2 deletions
diff --git a/.gdbinit b/.gdbinit
index d60f214bf7..53ad8728a0 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -472,9 +472,12 @@ end
define print_pi
set $pi = (zend_property_info *)$arg0
+ set $initial_offset = ((uint32_t)(zend_uintptr_t)(&((zend_object*)0)->properties_table[(0)]))
+ set $ptr_to_val = (zval*)((char*)$pi->ce->default_properties_table + $pi->offset - $initial_offset)
printf "[%p] {\n", $pi
+ printf " offset = %p\n", $pi->offset
printf " ce = [%p] %s\n", $pi->ce, $pi->ce->name->val
- printf " flags = %d (", $pi->flags
+ printf " flags = 0x%x (", $pi->flags
if $pi->flags & 0x100
printf "ZEND_ACC_PUBLIC"
else
@@ -485,7 +488,11 @@ define print_pi
printf "ZEND_ACC_PRIVATE"
else
if $pi->flags & 0x800
- printf "ZEND_ACC_CHANGED"
+ printf "ZEND_ACC_EARLY_BINDING"
+ else
+ if $pi->flags & 0x20000
+ printf "ZEND_ACC_SHADOW"
+ end
end
end
end
@@ -493,6 +500,8 @@ define print_pi
printf ")\n"
printf " name = "
print_zstr $pi->name
+ printf " default value: "
+ printzv $ptr_to_val
printf "}\n"
end