Lines Matching refs:PHPDBG_G
155 PHPDBG_G(watchpoint_hit) = 1; in phpdbg_print_watch_diff()
224 …phpdbg_btree_result *result = phpdbg_btree_find_closest(&PHPDBG_G(watchpoint_tree), (zend_ulong) p… in phpdbg_check_for_watchpoint()
277 zend_hash_index_add_empty_element(PHPDBG_G(watchlist_mem), (zend_ulong) page);
285 …ZEND_ASSERT((res = phpdbg_btree_find(&PHPDBG_G(watchpoint_tree), (zend_ulong) watch->addr.ptr)) ==…
286 phpdbg_btree_insert(&PHPDBG_G(watchpoint_tree), (zend_ulong) watch->addr.ptr, watch);
290 phpdbg_btree_delete(&PHPDBG_G(watchpoint_tree), (zend_ulong) watch->addr.ptr);
341 if ((coll = zend_hash_index_find_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref))) {
358 zend_hash_index_del(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref);
380 if (!(coll = zend_hash_index_find_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref))) {
409 zend_hash_index_add_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref, coll);
423 if (!(coll = zend_hash_index_find_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref))) {
433 zend_hash_index_add_ptr(&PHPDBG_G(watch_collisions), (zend_ulong) watch->ref, coll);
452 if ((res = phpdbg_btree_find(&PHPDBG_G(watchpoint_tree), (zend_ulong) watch->addr.ptr)) == NULL) {
593 …if (!(res = phpdbg_btree_find(&PHPDBG_G(watch_HashTables), (zend_ulong) element->parent_container)…
598 phpdbg_btree_insert(&PHPDBG_G(watch_HashTables), (zend_ulong) hti->ht, hti);
619 …phpdbg_btree_result *res = phpdbg_btree_find(&PHPDBG_G(watch_HashTables), (zend_ulong) element->pa…
626 phpdbg_btree_delete(&PHPDBG_G(watch_HashTables), (zend_ulong) hti->ht);
647 if ((prev = zend_hash_find_ptr(&PHPDBG_G(watch_recreation), element->str))) {
656 zend_hash_update_ptr(&PHPDBG_G(watch_recreation), element->str, element);
663 zend_hash_index_add_empty_element(&PHPDBG_G(watch_free), (zend_ulong) element->parent_container);
714 PHPDBG_G(watchpoint_hit) = 1;
716 zend_hash_index_del(&PHPDBG_G(watch_elements), child->id);
723 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(watch_recreation), element) {
725 …if (element->parent || zend_hash_index_find(&PHPDBG_G(watch_free), (zend_ulong) element->parent_co…
745 zend_hash_clean(&PHPDBG_G(watch_recreation));
746 zend_hash_clean(&PHPDBG_G(watch_free));
803 zend_hash_index_del(&PHPDBG_G(watch_elements), element->id);
966 …phpdbg_btree_result *res = phpdbg_btree_find(&PHPDBG_G(watch_HashTables), (zend_ulong) HT_WATCH_HT…
986 PHPDBG_G(watchpoint_hit) = 1;
1010 if (watch->type == WATCH_ON_REFCOUNTED && !(PHPDBG_G(flags) & PHPDBG_SHOW_REFCOUNTS)) {
1073 ZEND_HASH_FOREACH_NUM_KEY(PHPDBG_G(watchlist_mem), page) {
1075 res = phpdbg_btree_find_closest(&PHPDBG_G(watchpoint_tree), page + phpdbg_pagesize - 1);
1083 zend_hash_clean(PHPDBG_G(watchlist_mem));
1093 if (zend_hash_num_elements(&PHPDBG_G(watch_elements)) == 0) {
1097 if (zend_hash_num_elements(PHPDBG_G(watchlist_mem)) > 0) {
1099 mem_list = PHPDBG_G(watchlist_mem);
1100 PHPDBG_G(watchlist_mem) = PHPDBG_G(watchlist_mem_backup);
1103 …phpdbg_btree_position pos = phpdbg_btree_find_between(&PHPDBG_G(watchpoint_tree), page, page + php…
1109 if ((res = phpdbg_btree_find_closest(&PHPDBG_G(watchpoint_tree), page - 1))) {
1123 PHPDBG_G(watchlist_mem) = mem_list;
1127 ret = PHPDBG_G(watchpoint_hit) ? SUCCESS : FAILURE;
1128 PHPDBG_G(watchpoint_hit) = 0;
1137 if (zend_hash_num_elements(&PHPDBG_G(watch_elements))) {
1138 if ((result = phpdbg_btree_find(&PHPDBG_G(watchpoint_tree), (zend_ulong) ptr))) {
1158 …if ((result = phpdbg_btree_find(&PHPDBG_G(watchpoint_tree), HT_WATCH_OFFSET + (zend_ulong) ptr))) {
1165 zend_hash_index_del(&PHPDBG_G(watch_free), (zend_ulong) ptr);
1168 if (PHPDBG_G(original_free_function)) {
1169 PHPDBG_G(original_free_function)(ptr);
1179 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(watch_elements), element) {
1233 element->parent = PHPDBG_G(watch_tmp);
1244 if (PHPDBG_G(watch_tmp)) {
1245 PHPDBG_G(watch_tmp)->child = element;
1251 element->id = PHPDBG_G(watch_elements).nNextFreeElement;
1252 zend_hash_index_add_ptr(&PHPDBG_G(watch_elements), element->id, element);
1257 PHPDBG_G(watch_tmp) = NULL;
1270 …if (PHPDBG_G(watch_tmp) && Z_ISREF_P(PHPDBG_G(watch_tmp)->watch->addr.zv) && Z_REFVAL_P(PHPDBG_G(w…
1281 element->parent = PHPDBG_G(watch_tmp);
1287 if (PHPDBG_G(watch_tmp)) {
1288 PHPDBG_G(watch_tmp)->child = element;
1290 PHPDBG_G(watch_tmp) = element;
1327 if ((element = zend_hash_index_find_ptr(&PHPDBG_G(watch_elements), param->num))) {
1395 phpdbg_btree_init(&PHPDBG_G(watchpoint_tree), sizeof(void *) * 8);
1396 phpdbg_btree_init(&PHPDBG_G(watch_HashTables), sizeof(void *) * 8);
1397 zend_hash_init(&PHPDBG_G(watch_elements), 8, NULL, NULL, 0);
1398 zend_hash_init(&PHPDBG_G(watch_collisions), 8, NULL, NULL, 0);
1399 zend_hash_init(&PHPDBG_G(watch_recreation), 8, NULL, NULL, 0);
1400 zend_hash_init(&PHPDBG_G(watch_free), 8, NULL, NULL, 0);
1403 …PHPDBG_G(watchlist_mem) = malloc(phpdbg_pagesize > sizeof(HashTable) ? phpdbg_pagesize : sizeof(Ha…
1404 …zend_hash_init(PHPDBG_G(watchlist_mem), phpdbg_pagesize / (sizeof(Bucket) + sizeof(uint32_t)), NUL…
1405 …PHPDBG_G(watchlist_mem_backup) = malloc(phpdbg_pagesize > sizeof(HashTable) ? phpdbg_pagesize : si…
1406 …zend_hash_init(PHPDBG_G(watchlist_mem_backup), phpdbg_pagesize / (sizeof(Bucket) + sizeof(uint32_t…
1415 ZEND_HASH_FOREACH_PTR(&PHPDBG_G(watch_recreation), element) {
1420 pos = phpdbg_btree_find_between(&PHPDBG_G(watchpoint_tree), 0, -1);
1425 …zend_hash_destroy(&PHPDBG_G(watch_elements)); PHPDBG_G(watch_elements).nNumOfElements = 0; /* phpd…
1426 zend_hash_destroy(&PHPDBG_G(watch_recreation));
1427 zend_hash_destroy(&PHPDBG_G(watch_free));
1428 zend_hash_destroy(&PHPDBG_G(watch_collisions));
1429 zend_hash_destroy(PHPDBG_G(watchlist_mem));
1430 free(PHPDBG_G(watchlist_mem));
1431 zend_hash_destroy(PHPDBG_G(watchlist_mem_backup));
1432 free(PHPDBG_G(watchlist_mem_backup));