mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
- Moved information about breakpoints to "info break"
This commit is contained in:
parent
e10bfd3b79
commit
97f733e60d
3 changed files with 21 additions and 13 deletions
|
@ -21,9 +21,22 @@
|
||||||
#include "phpdbg.h"
|
#include "phpdbg.h"
|
||||||
#include "phpdbg_utils.h"
|
#include "phpdbg_utils.h"
|
||||||
#include "phpdbg_info.h"
|
#include "phpdbg_info.h"
|
||||||
|
#include "phpdbg_bp.h"
|
||||||
|
|
||||||
ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
|
ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
|
||||||
|
|
||||||
|
PHPDBG_INFO(break) /* {{{ */
|
||||||
|
{
|
||||||
|
phpdbg_print_breakpoints(PHPDBG_BREAK_FILE TSRMLS_CC);
|
||||||
|
phpdbg_print_breakpoints(PHPDBG_BREAK_SYM TSRMLS_CC);
|
||||||
|
phpdbg_print_breakpoints(PHPDBG_BREAK_METHOD TSRMLS_CC);
|
||||||
|
phpdbg_print_breakpoints(PHPDBG_BREAK_OPLINE TSRMLS_CC);
|
||||||
|
phpdbg_print_breakpoints(PHPDBG_BREAK_COND TSRMLS_CC);
|
||||||
|
phpdbg_print_breakpoints(PHPDBG_BREAK_OPCODE TSRMLS_CC);
|
||||||
|
|
||||||
|
return SUCCESS;
|
||||||
|
} /* }}} */
|
||||||
|
|
||||||
PHPDBG_INFO(files) /* {{{ */
|
PHPDBG_INFO(files) /* {{{ */
|
||||||
{
|
{
|
||||||
HashPosition pos;
|
HashPosition pos;
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#define PHPDBG_INFO(name) PHPDBG_COMMAND(info_##name)
|
#define PHPDBG_INFO(name) PHPDBG_COMMAND(info_##name)
|
||||||
|
|
||||||
PHPDBG_INFO(files);
|
PHPDBG_INFO(files);
|
||||||
|
PHPDBG_INFO(break);
|
||||||
PHPDBG_INFO(classes);
|
PHPDBG_INFO(classes);
|
||||||
PHPDBG_INFO(funcs);
|
PHPDBG_INFO(funcs);
|
||||||
PHPDBG_INFO(error);
|
PHPDBG_INFO(error);
|
||||||
|
@ -32,12 +33,13 @@ PHPDBG_INFO(vars);
|
||||||
PHPDBG_INFO(literal);
|
PHPDBG_INFO(literal);
|
||||||
|
|
||||||
static const phpdbg_command_t phpdbg_info_commands[] = {
|
static const phpdbg_command_t phpdbg_info_commands[] = {
|
||||||
PHPDBG_COMMAND_D_EX(files, "lists included files", 'F', info_files, NULL, 0),
|
PHPDBG_COMMAND_D_EX(break, "show breakpoints", 'b', info_break, NULL, 0),
|
||||||
PHPDBG_COMMAND_D_EX(classes, "lists loaded classes", 'c', info_classes, NULL, 0),
|
PHPDBG_COMMAND_D_EX(files, "lists included files", 'F', info_files, NULL, 0),
|
||||||
PHPDBG_COMMAND_D_EX(funcs, "lists loaded classes", 'f', info_funcs, NULL, 0),
|
PHPDBG_COMMAND_D_EX(classes, "lists loaded classes", 'c', info_classes, NULL, 0),
|
||||||
PHPDBG_COMMAND_D_EX(error, "show the last error", 'e', info_error, NULL, 0),
|
PHPDBG_COMMAND_D_EX(funcs, "lists loaded classes", 'f', info_funcs, NULL, 0),
|
||||||
PHPDBG_COMMAND_D_EX(vars, "show active variables", 'v', info_vars, NULL, 0),
|
PHPDBG_COMMAND_D_EX(error, "show the last error", 'e', info_error, NULL, 0),
|
||||||
PHPDBG_COMMAND_D_EX(literal, "show active literal constants", 'l', info_literal, NULL, 0),
|
PHPDBG_COMMAND_D_EX(vars, "show active variables", 'v', info_vars, NULL, 0),
|
||||||
|
PHPDBG_COMMAND_D_EX(literal, "show active literal constants", 'l', info_literal, NULL, 0),
|
||||||
PHPDBG_END_COMMAND
|
PHPDBG_END_COMMAND
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -739,13 +739,6 @@ PHPDBG_COMMAND(print) /* {{{ */
|
||||||
(float) (zend_memory_usage(1 TSRMLS_CC)/1024),
|
(float) (zend_memory_usage(1 TSRMLS_CC)/1024),
|
||||||
(float) (zend_memory_usage(0 TSRMLS_CC)/1024));
|
(float) (zend_memory_usage(0 TSRMLS_CC)/1024));
|
||||||
|
|
||||||
phpdbg_print_breakpoints(PHPDBG_BREAK_FILE TSRMLS_CC);
|
|
||||||
phpdbg_print_breakpoints(PHPDBG_BREAK_SYM TSRMLS_CC);
|
|
||||||
phpdbg_print_breakpoints(PHPDBG_BREAK_METHOD TSRMLS_CC);
|
|
||||||
phpdbg_print_breakpoints(PHPDBG_BREAK_OPLINE TSRMLS_CC);
|
|
||||||
phpdbg_print_breakpoints(PHPDBG_BREAK_COND TSRMLS_CC);
|
|
||||||
phpdbg_print_breakpoints(PHPDBG_BREAK_OPCODE TSRMLS_CC);
|
|
||||||
|
|
||||||
phpdbg_writeln(SEPARATE);
|
phpdbg_writeln(SEPARATE);
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue