]> granicus.if.org Git - php/commitdiff
Fix parent command offsets
authorBob Weinand <bobwei9@hotmail.com>
Sat, 21 Mar 2015 22:19:12 +0000 (23:19 +0100)
committerBob Weinand <bobwei9@hotmail.com>
Sat, 21 Mar 2015 22:19:12 +0000 (23:19 +0100)
sapi/phpdbg/phpdbg_break.c
sapi/phpdbg/phpdbg_help.c
sapi/phpdbg/phpdbg_info.c
sapi/phpdbg/phpdbg_list.c
sapi/phpdbg/phpdbg_print.c
sapi/phpdbg/phpdbg_set.c
sapi/phpdbg/phpdbg_watch.c

index d23410fcfa0ce0e1b8d4af54aed8b1743f5117c3..c0465ff417f99089f2d6b6bbcdb15d5a8f0bdef4 100644 (file)
@@ -29,7 +29,7 @@
 ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
 
 #define PHPDBG_BREAK_COMMAND_D(f, h, a, m, l, s, flags) \
-       PHPDBG_COMMAND_D_EXP(f, h, a, m, l, s, &phpdbg_prompt_commands[10], flags)
+       PHPDBG_COMMAND_D_EXP(f, h, a, m, l, s, &phpdbg_prompt_commands[9], flags)
 
 /**
  * Commands
index ceab62bcd81b7fc4626938bbcb21b720a2225c62..654a8fef72c85a6513c3578520c1c49997f59f7e 100644 (file)
@@ -29,7 +29,7 @@ ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
 
 /* {{{ Commands Table */
 #define PHPDBG_COMMAND_HELP_D(name, tip, alias, action) \
-       {PHPDBG_STRL(#name), tip, sizeof(tip)-1, alias, action, NULL, 0}
+       {PHPDBG_STRL(#name), tip, sizeof(tip)-1, alias, action, &phpdbg_prompt_commands[16], 0}
 
 const phpdbg_command_t phpdbg_help_commands[] = {
        PHPDBG_COMMAND_HELP_D(aliases,    "show alias list", 'a', phpdbg_do_help_aliases),
index 1f51a761ac93187d4a72a28d5fdc0c67296fc4e2..f34485d6b5ed4d210781e8b5accafde2c702a0f6 100644 (file)
@@ -28,7 +28,7 @@
 ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
 
 #define PHPDBG_INFO_COMMAND_D(f, h, a, m, l, s, flags) \
-       PHPDBG_COMMAND_D_EXP(f, h, a, m, l, s, &phpdbg_prompt_commands[14], flags)
+       PHPDBG_COMMAND_D_EXP(f, h, a, m, l, s, &phpdbg_prompt_commands[13], flags)
 
 const phpdbg_command_t phpdbg_info_commands[] = {
        PHPDBG_INFO_COMMAND_D(break,     "show breakpoints",              'b', info_break,     NULL, 0, PHPDBG_ASYNC_SAFE),
index d4a089c8113aff38b9e9372e06e791b747c12bff..c96d8652f01a16478855304f4d6310ea9a245c87 100644 (file)
@@ -35,7 +35,7 @@
 ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
 
 #define PHPDBG_LIST_COMMAND_D(f, h, a, m, l, s, flags) \
-       PHPDBG_COMMAND_D_EXP(f, h, a, m, l, s, &phpdbg_prompt_commands[13], flags)
+       PHPDBG_COMMAND_D_EXP(f, h, a, m, l, s, &phpdbg_prompt_commands[12], flags)
 
 const phpdbg_command_t phpdbg_list_commands[] = {
        PHPDBG_LIST_COMMAND_D(lines,     "lists the specified lines",    'l', list_lines,  NULL, "l", PHPDBG_ASYNC_SAFE),
index 77de30571ff7f9ce5cdedeef91864e1ca26360a4..ae450e8ebbded70744beea18d88395df61e67358 100644 (file)
@@ -27,7 +27,7 @@
 ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
 
 #define PHPDBG_PRINT_COMMAND_D(f, h, a, m, l, s, flags) \
-       PHPDBG_COMMAND_D_EXP(f, h, a, m, l, s, &phpdbg_prompt_commands[9], flags)
+       PHPDBG_COMMAND_D_EXP(f, h, a, m, l, s, &phpdbg_prompt_commands[8], flags)
 
 const phpdbg_command_t phpdbg_print_commands[] = {
        PHPDBG_PRINT_COMMAND_D(exec,       "print out the instructions in the execution context",  'e', print_exec,   NULL, 0, PHPDBG_ASYNC_SAFE),
index 1ce0e3b1c03da6b4ec9b6f1a32ab16bd3f5e6bc5..f91156a45249ed1e3cb227a31bbbf85ed138c711 100644 (file)
@@ -28,7 +28,7 @@
 ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
 
 #define PHPDBG_SET_COMMAND_D(f, h, a, m, l, s, flags) \
-       PHPDBG_COMMAND_D_EXP(f, h, a, m, l, s, &phpdbg_prompt_commands[18], flags)
+       PHPDBG_COMMAND_D_EXP(f, h, a, m, l, s, &phpdbg_prompt_commands[17], flags)
 
 const phpdbg_command_t phpdbg_set_commands[] = {
        PHPDBG_SET_COMMAND_D(prompt,       "usage: set prompt [<string>]",            'p', set_prompt,       NULL, "|s", 0),
index 3c78314c08753968688856b28bfee87a5b26ffb5..bb717682823a6ca7a659fdc331743e0944ba3ed6 100644 (file)
@@ -23,6 +23,7 @@
 #include "phpdbg_btree.h"
 #include "phpdbg_watch.h"
 #include "phpdbg_utils.h"
+#include "phpdbg_prompt.h"
 #ifndef _WIN32
 # include <unistd.h>
 # include <sys/mman.h>
@@ -31,9 +32,9 @@
 ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
 
 const phpdbg_command_t phpdbg_watch_commands[] = {
-       PHPDBG_COMMAND_D_EX(array,      "create watchpoint on an array", 'a', watch_array,     NULL, "s", 0),
-       PHPDBG_COMMAND_D_EX(delete,     "delete watchpoint",             'd', watch_delete,    NULL, "s", 0),
-       PHPDBG_COMMAND_D_EX(recursive,  "create recursive watchpoints",  'r', watch_recursive, NULL, "s", 0),
+       PHPDBG_COMMAND_D_EX(array,      "create watchpoint on an array", 'a', watch_array,     &phpdbg_prompt_commands[24], "s", 0),
+       PHPDBG_COMMAND_D_EX(delete,     "delete watchpoint",             'd', watch_delete,    &phpdbg_prompt_commands[24], "s", 0),
+       PHPDBG_COMMAND_D_EX(recursive,  "create recursive watchpoints",  'r', watch_recursive, &phpdbg_prompt_commands[24], "s", 0),
        PHPDBG_END_COMMAND
 };