Lines Matching refs:addr
127 #define HT_WATCH_HT(watch) HT_PTR_HT((watch)->addr.ptr)
220 static phpdbg_watchpoint_t *phpdbg_check_for_watchpoint(void *addr) { in phpdbg_check_for_watchpoint() argument
222 …closest(&PHPDBG_G(watchpoint_tree), (zend_ulong) phpdbg_get_page_boundary(addr) + phpdbg_pagesize … in phpdbg_check_for_watchpoint()
231 …addr.ptr) > (char *) addr || (char *) phpdbg_get_page_boundary(watch->addr.ptr) + phpdbg_get_total… in phpdbg_check_for_watchpoint()
241 …mprotect(phpdbg_get_page_boundary(watch->addr.ptr), phpdbg_get_total_page_size(watch->addr.ptr, wa… in phpdbg_change_watchpoint_access()
254 int phpdbg_watchpoint_segfault_handler(void *addr) { argument
261 addr
283 …ZEND_ASSERT((res = phpdbg_btree_find(&PHPDBG_G(watchpoint_tree), (zend_ulong) watch->addr.ptr)) ==…
284 phpdbg_btree_insert(&PHPDBG_G(watchpoint_tree), (zend_ulong) watch->addr.ptr, watch);
288 phpdbg_btree_delete(&PHPDBG_G(watchpoint_tree), (zend_ulong) watch->addr.ptr);
292 void phpdbg_set_addr_watchpoint(void *addr, size_t size, phpdbg_watchpoint_t *watch) { argument
293 watch->addr.ptr = addr;
320 memcpy(&watch->backup, watch->addr.ptr, watch->size);
326 …_string_init((char *) watch->addr.ptr + XtOffsetOf(zend_string, val) - XtOffsetOf(zend_string, len…
330 memcpy((char *) &watch->backup + HT_WATCH_OFFSET, watch->addr.ptr, watch->size);
348 } else if (coll->reference.addr.ptr) {
368 if (Z_REFCOUNTED_P(watch->addr.zv)) {
369 if (Z_COUNTED_P(watch->addr.zv) == watch->ref) {
377 watch->ref = Z_COUNTED_P(watch->addr.zv);
382 phpdbg_set_addr_watchpoint(Z_COUNTED_P(watch->addr.zv), sizeof(uint32_t), &coll->ref);
388 if (Z_ISREF_P(watch->addr.zv)) {
389 phpdbg_set_zval_watchpoint(Z_REFVAL_P(watch->addr.zv), &coll->reference);
395 } else if (Z_TYPE_P(watch->addr.zv) == IS_STRING) {
397 …atchpoint(&Z_STRLEN_P(watch->addr.zv), XtOffsetOf(zend_string, val) - XtOffsetOf(zend_string, len)…
404 coll->reference.addr.ptr = NULL;
411 } else if (Z_TYPE_P(watch->addr.zv) == IS_INDIRECT) {
412 if ((zend_refcounted *) Z_INDIRECT_P(watch->addr.zv) == watch->ref) {
420 watch->ref = (zend_refcounted *) Z_INDIRECT_P(watch->addr.zv);
424 phpdbg_set_zval_watchpoint(Z_INDIRECT_P(watch->addr.zv), &coll->ref);
451 if ((res = phpdbg_btree_find(&PHPDBG_G(watchpoint_tree), (zend_ulong) watch->addr.ptr)) == NULL) {
505 if (element->watch->addr.ptr == ptr) {
543 zv = element->watch->addr.zv;
729 zv = element->parent->watch->addr.zv;
1007 if (!phpdbg_check_watch_diff(watch->type, comparePtr, watch->addr.ptr)) {
1015 …>backup.bucket.key != watch->addr.bucket->key || (watch->backup.bucket.key != NULL && watch->backu…
1034 watch->addr.zv = new;
1038 if (!phpdbg_check_watch_diff(WATCH_ON_ZVAL, &watch->backup.bucket.val, watch->addr.ptr)) {
1042 } else if (Z_TYPE_P(watch->addr.zv) == IS_UNDEF) {
1052 phpdbg_print_watch_diff(watch->type, name, comparePtr, watch->addr.ptr);
1079 if ((char *) page < (char *) watch->addr.ptr + watch->size) {
1112 if ((char *) page < (char *) watch->addr.ptr + watch->size) {
1273 …ch_tmp) && Z_ISREF_P(PHPDBG_G(watch_tmp)->watch->addr.zv) && Z_REFVAL_P(PHPDBG_G(watch_tmp)->watch…