Lines Matching refs:addr

135 #define HT_WATCH_HT(watch) HT_PTR_HT((watch)->addr.ptr)
219 static phpdbg_watchpoint_t *phpdbg_check_for_watchpoint(phpdbg_btree *tree, void *addr) { in phpdbg_check_for_watchpoint() argument
221 …t = phpdbg_btree_find_closest(tree, (zend_ulong) phpdbg_get_page_boundary(addr) + phpdbg_pagesize … in phpdbg_check_for_watchpoint()
230addr.ptr) > (char *) addr || (char *) phpdbg_get_page_boundary(watch->addr.ptr) + phpdbg_get_total… in phpdbg_check_for_watchpoint()
239 void *page_addr = phpdbg_get_page_boundary(watch->addr.ptr); in phpdbg_change_watchpoint_access()
240 size_t size = phpdbg_get_total_page_size(watch->addr.ptr, watch->size); in phpdbg_change_watchpoint_access()
283 int phpdbg_watchpoint_segfault_handler(void *addr) { argument
290 addr
338 …phpdbg_btree_result *res = phpdbg_btree_find(&PHPDBG_G(watchpoint_tree), (zend_ulong) watch->addr.…
341 phpdbg_btree_insert(&PHPDBG_G(watchpoint_tree), (zend_ulong) watch->addr.ptr, watch);
345 phpdbg_btree_delete(&PHPDBG_G(watchpoint_tree), (zend_ulong) watch->addr.ptr);
349 void phpdbg_set_addr_watchpoint(void *addr, size_t size, phpdbg_watchpoint_t *watch) { argument
350 watch->addr.ptr = addr;
377 memcpy(&watch->backup, watch->addr.ptr, watch->size);
383 …_string_init((char *) watch->addr.ptr + XtOffsetOf(zend_string, val) - XtOffsetOf(zend_string, len…
387 memcpy((char *) &watch->backup + HT_WATCH_OFFSET, watch->addr.ptr, watch->size);
405 } else if (coll->reference.addr.ptr) {
425 if (Z_REFCOUNTED_P(watch->addr.zv)) {
426 if (Z_COUNTED_P(watch->addr.zv) == watch->ref) {
434 watch->ref = Z_COUNTED_P(watch->addr.zv);
439 phpdbg_set_addr_watchpoint(Z_COUNTED_P(watch->addr.zv), sizeof(uint32_t), &coll->ref);
445 if (Z_ISREF_P(watch->addr.zv)) {
446 phpdbg_set_zval_watchpoint(Z_REFVAL_P(watch->addr.zv), &coll->reference);
452 } else if (Z_TYPE_P(watch->addr.zv) == IS_STRING) {
454 …atchpoint(&Z_STRLEN_P(watch->addr.zv), XtOffsetOf(zend_string, val) - XtOffsetOf(zend_string, len)…
461 coll->reference.addr.ptr = NULL;
468 } else if (Z_TYPE_P(watch->addr.zv) == IS_INDIRECT) {
469 if ((zend_refcounted *) Z_INDIRECT_P(watch->addr.zv) == watch->ref) {
477 watch->ref = (zend_refcounted *) Z_INDIRECT_P(watch->addr.zv);
481 phpdbg_set_zval_watchpoint(Z_INDIRECT_P(watch->addr.zv), &coll->ref);
508 if ((res = phpdbg_btree_find(&PHPDBG_G(watchpoint_tree), (zend_ulong) watch->addr.ptr)) == NULL) {
564 if (element->watch->addr.ptr == ptr) {
602 zv = element->watch->addr.zv;
782 zv = element->parent->watch->addr.zv;
1063 if (!phpdbg_check_watch_diff(watch->type, comparePtr, watch->addr.ptr)) {
1071 …>backup.bucket.key != watch->addr.bucket->key || (watch->backup.bucket.key != NULL && watch->backu…
1090 watch->addr.zv = new;
1094 if (!phpdbg_check_watch_diff(WATCH_ON_ZVAL, &watch->backup.bucket.val, watch->addr.ptr)) {
1098 } else if (Z_TYPE_P(watch->addr.zv) == IS_UNDEF) {
1108 phpdbg_print_watch_diff(watch->type, name, comparePtr, watch->addr.ptr);
1135 if ((char *) page < (char *) watch->addr.ptr + watch->size) {
1182 if ((char *) page < (char *) watch->addr.ptr + watch->size) {
1339 …ch_tmp) && Z_ISREF_P(PHPDBG_G(watch_tmp)->watch->addr.zv) && Z_REFVAL_P(PHPDBG_G(watch_tmp)->watch…