com php-src: Remove some dead code...: phpdbg_win.c

From: Date: Sun, 13 Apr 2014 11:33:07 +0000
Subject: com php-src: Remove some dead code...: phpdbg_win.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-76999@lists.php.net to get a copy of this message
Commit: 286dd4dc714e18d28dca61efb4143cf214f09650 Author: Bob Weinand <bobwei9@hotmail.com> Sun, 13 Apr 2014 13:33:07 +0200 Parents: faa7e3264e4f1d91678baf4ef1287e655f81c61d Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=286dd4dc714e18d28dca61efb4143cf214f09650 Log: Remove some dead code... Changed paths: M phpdbg_win.c Diff: diff --git a/phpdbg_win.c b/phpdbg_win.c index 55d4b0f..b0cbdf2 100644 --- a/phpdbg_win.c +++ b/phpdbg_win.c @@ -21,26 +21,22 @@ #include "zend.h" #include "phpdbg.h" -phpdbg_btree phpdbg_memory_tree; - int mprotect(void *addr, size_t size, int protection) { int var; return (int)VirtualProtect(addr, size, protection == (PROT_READ | PROT_WRITE) ? PAGE_READWRITE : PAGE_READONLY, &var); } -size_t virtual_size(void *ptr) { - return (size_t)phpdbg_btree_find(&phpdbg_memory_tree, (zend_ulong)ptr)->ptr; -} - int phpdbg_exception_handler_win32(EXCEPTION_POINTERS *xp) { EXCEPTION_RECORD *xr = xp->ExceptionRecord; CONTEXT *xc = xp->ContextRecord; + if(xr->ExceptionCode == EXCEPTION_ACCESS_VIOLATION) { TSRMLS_FETCH(); - //printf("Watchpoint hit at: %p\n", xr->ExceptionInformation[1]); + if (phpdbg_watchpoint_segfault_handler((void *)xr->ExceptionInformation[1] TSRMLS_CC) == SUCCESS) { return EXCEPTION_CONTINUE_EXECUTION; } } + return EXCEPTION_CONTINUE_SEARCH; }

« previous php.cvs (#76999) next »