PHP  
 PHP: Test and Code Coverage Analysis
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

LCOV - code coverage report
Current view: top level - sapi/phpdbg - phpdbg_break.c (source / functions) Hit Total Coverage
Test: PHP Code Coverage Lines: 3 6 50.0 %
Date: 2018-12-08 Functions: 1 2 50.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :    +----------------------------------------------------------------------+
       3             :    | PHP Version 7                                                        |
       4             :    +----------------------------------------------------------------------+
       5             :    | Copyright (c) 1997-2018 The PHP Group                                |
       6             :    +----------------------------------------------------------------------+
       7             :    | This source file is subject to version 3.01 of the PHP license,      |
       8             :    | that is bundled with this package in the file LICENSE, and is        |
       9             :    | available through the world-wide-web at the following url:           |
      10             :    | http://www.php.net/license/3_01.txt                                  |
      11             :    | If you did not receive a copy of the PHP license and are unable to   |
      12             :    | obtain it through the world-wide-web, please send a note to          |
      13             :    | license@php.net so we can mail you a copy immediately.               |
      14             :    +----------------------------------------------------------------------+
      15             :    | Authors: Felipe Pena <felipe@php.net>                                |
      16             :    | Authors: Joe Watkins <joe.watkins@live.co.uk>                        |
      17             :    | Authors: Bob Weinand <bwoebi@php.net>                                |
      18             :    +----------------------------------------------------------------------+
      19             : */
      20             : 
      21             : #include "phpdbg.h"
      22             : #include "phpdbg_print.h"
      23             : #include "phpdbg_utils.h"
      24             : #include "phpdbg_opcode.h"
      25             : #include "phpdbg_break.h"
      26             : #include "phpdbg_bp.h"
      27             : #include "phpdbg_prompt.h"
      28             : 
      29             : ZEND_EXTERN_MODULE_GLOBALS(phpdbg)
      30             : 
      31             : #define PHPDBG_BREAK_COMMAND_D(f, h, a, m, l, s, flags) \
      32             :         PHPDBG_COMMAND_D_EXP(f, h, a, m, l, s, &phpdbg_prompt_commands[9], flags)
      33             : 
      34             : /**
      35             :  * Commands
      36             :  */
      37             : const phpdbg_command_t phpdbg_break_commands[] = {
      38             :         PHPDBG_BREAK_COMMAND_D(at,         "specify breakpoint by location and condition",           '@', break_at,      NULL, "*c", 0),
      39             :         PHPDBG_BREAK_COMMAND_D(del,        "delete breakpoint by identifier number",                 '~', break_del,     NULL, "n",  0),
      40             :         PHPDBG_END_COMMAND
      41             : };
      42             : 
      43           0 : PHPDBG_BREAK(at) /* {{{ */
      44             : {
      45           0 :         phpdbg_set_breakpoint_at(param);
      46             : 
      47           0 :         return SUCCESS;
      48             : } /* }}} */
      49             : 
      50           2 : PHPDBG_BREAK(del) /* {{{ */
      51             : {
      52           2 :         phpdbg_delete_breakpoint(param->num);
      53             : 
      54           2 :         return SUCCESS;
      55             : } /* }}} */

Generated by: LCOV version 1.10

Generated at Sat, 08 Dec 2018 23:47:54 +0000 (5 days ago)

Copyright © 2005-2018 The PHP Group
All rights reserved.