Lines Matching refs:addr
127 #define HT_WATCH_HT(watch) HT_PTR_HT((watch)->addr.ptr)
211 static phpdbg_watchpoint_t *phpdbg_check_for_watchpoint(void *addr) { in phpdbg_check_for_watchpoint() argument
213 …closest(&PHPDBG_G(watchpoint_tree), (zend_ulong) phpdbg_get_page_boundary(addr) + phpdbg_pagesize … in phpdbg_check_for_watchpoint()
222 …addr.ptr) > (char *) addr || (char *) phpdbg_get_page_boundary(watch->addr.ptr) + phpdbg_get_total… in phpdbg_check_for_watchpoint()
232 …mprotect(phpdbg_get_page_boundary(watch->addr.ptr), phpdbg_get_total_page_size(watch->addr.ptr, wa… in phpdbg_change_watchpoint_access()
245 int phpdbg_watchpoint_segfault_handler(void *addr) { argument
252 addr
274 …ZEND_ASSERT((res = phpdbg_btree_find(&PHPDBG_G(watchpoint_tree), (zend_ulong) watch->addr.ptr)) ==…
275 phpdbg_btree_insert(&PHPDBG_G(watchpoint_tree), (zend_ulong) watch->addr.ptr, watch);
279 phpdbg_btree_delete(&PHPDBG_G(watchpoint_tree), (zend_ulong) watch->addr.ptr);
283 void phpdbg_set_addr_watchpoint(void *addr, size_t size, phpdbg_watchpoint_t *watch) { argument
284 watch->addr.ptr = addr;
311 memcpy(&watch->backup, watch->addr.ptr, watch->size);
317 …_string_init((char *) watch->addr.ptr + XtOffsetOf(zend_string, val) - XtOffsetOf(zend_string, len…
321 memcpy((char *) &watch->backup + HT_WATCH_OFFSET, watch->addr.ptr, watch->size);
339 } else if (coll->reference.addr.ptr) {
359 if (Z_REFCOUNTED_P(watch->addr.zv)) {
360 if (Z_COUNTED_P(watch->addr.zv) == watch->ref) {
368 watch->ref = Z_COUNTED_P(watch->addr.zv);
373 phpdbg_set_addr_watchpoint(Z_COUNTED_P(watch->addr.zv), sizeof(uint32_t), &coll->ref);
379 if (Z_ISREF_P(watch->addr.zv)) {
380 phpdbg_set_zval_watchpoint(Z_REFVAL_P(watch->addr.zv), &coll->reference);
386 } else if (Z_TYPE_P(watch->addr.zv) == IS_STRING) {
388 …atchpoint(&Z_STRLEN_P(watch->addr.zv), XtOffsetOf(zend_string, val) - XtOffsetOf(zend_string, len)…
395 coll->reference.addr.ptr = NULL;
402 } else if (Z_TYPE_P(watch->addr.zv) == IS_INDIRECT) {
403 if ((zend_refcounted *) Z_INDIRECT_P(watch->addr.zv) == watch->ref) {
411 watch->ref = (zend_refcounted *) Z_INDIRECT_P(watch->addr.zv);
415 phpdbg_set_zval_watchpoint(Z_INDIRECT_P(watch->addr.zv), &coll->ref);
442 if ((res = phpdbg_btree_find(&PHPDBG_G(watchpoint_tree), (zend_ulong) watch->addr.ptr)) == NULL) {
496 if (element->watch->addr.ptr == ptr) {
534 zv = element->watch->addr.zv;
720 zv = element->parent->watch->addr.zv;
998 if (!phpdbg_check_watch_diff(watch->type, comparePtr, watch->addr.ptr)) {
1006 …>backup.bucket.key != watch->addr.bucket->key || (watch->backup.bucket.key != NULL && watch->backu…
1025 watch->addr.zv = new;
1029 if (!phpdbg_check_watch_diff(WATCH_ON_ZVAL, &watch->backup.bucket.val, watch->addr.ptr)) {
1033 } else if (Z_TYPE_P(watch->addr.zv) == IS_UNDEF) {
1043 phpdbg_print_watch_diff(watch->type, name, comparePtr, watch->addr.ptr);
1070 if ((char *) page < (char *) watch->addr.ptr + watch->size) {
1103 if ((char *) page < (char *) watch->addr.ptr + watch->size) {
1260 …ch_tmp) && Z_ISREF_P(PHPDBG_G(watch_tmp)->watch->addr.zv) && Z_REFVAL_P(PHPDBG_G(watch_tmp)->watch…