From b00376884e00aa04614dd650e119aad653c1f16b Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Mon, 11 Jul 2016 23:28:14 +0200 Subject: Rewrite watchpoints to be much more stable This mainly involves a separate abstraction layer for elements (e.g. $a->b) and watchpoints (on pointer of the Bucket for example). Also better comparison handling (value backup vs. page dumps). It is not yet finished (there are sometimes false positives announced and names not yet perfect), but the functionality is working and not crashing as far as I have tested. Future scope is also relative watchpoints, e.g. "w $this->val expression()" which does not have the symbol tables as basis, but the value (in this example: return value of expression()) as basis. --- sapi/phpdbg/phpdbg_btree.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sapi/phpdbg/phpdbg_btree.h') diff --git a/sapi/phpdbg/phpdbg_btree.h b/sapi/phpdbg/phpdbg_btree.h index 05fb6b833a..3eae81b997 100644 --- a/sapi/phpdbg/phpdbg_btree.h +++ b/sapi/phpdbg/phpdbg_btree.h @@ -37,6 +37,7 @@ union _phpdbg_btree_branch { typedef struct { zend_ulong count; zend_ulong depth; + zend_bool persistent; phpdbg_btree_branch *branch; } phpdbg_btree; @@ -47,6 +48,7 @@ typedef struct { } phpdbg_btree_position; void phpdbg_btree_init(phpdbg_btree *tree, zend_ulong depth); +void phpdbg_btree_clean(phpdbg_btree *tree); phpdbg_btree_result *phpdbg_btree_find(phpdbg_btree *tree, zend_ulong idx); phpdbg_btree_result *phpdbg_btree_find_closest(phpdbg_btree *tree, zend_ulong idx); phpdbg_btree_position phpdbg_btree_find_between(phpdbg_btree *tree, zend_ulong lower_idx, zend_ulong higher_idx); -- cgit v1.2.1