2013-11-12 08:26:11 +00:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| PHP Version 5 |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Copyright (c) 1997-2013 The PHP Group |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
|
|
| available through the world-wide-web at the following url: |
|
|
|
|
| http://www.php.net/license/3_01.txt |
|
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Authors: Felipe Pena <felipe@php.net> |
|
|
|
|
| Authors: Joe Watkins <joe.watkins@live.co.uk> |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PHPDBG_PRINT_H
|
|
|
|
#define PHPDBG_PRINT_H
|
|
|
|
|
2013-11-17 21:01:41 +00:00
|
|
|
#include "phpdbg_cmd.h"
|
2013-11-12 08:26:11 +00:00
|
|
|
|
2013-11-17 21:01:41 +00:00
|
|
|
#define PHPDBG_PRINT(name) PHPDBG_COMMAND(print_##name)
|
2013-11-12 08:26:11 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Printer Forward Declarations
|
|
|
|
*/
|
2013-11-17 09:30:44 +00:00
|
|
|
PHPDBG_PRINT(exec);
|
2013-11-12 09:26:26 +00:00
|
|
|
PHPDBG_PRINT(opline);
|
2013-11-13 00:36:47 +00:00
|
|
|
PHPDBG_PRINT(class);
|
2013-11-13 05:36:01 +00:00
|
|
|
PHPDBG_PRINT(method);
|
2013-11-13 02:26:37 +00:00
|
|
|
PHPDBG_PRINT(func);
|
2013-11-12 08:26:11 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Commands
|
|
|
|
*/
|
|
|
|
static const phpdbg_command_t phpdbg_print_commands[] = {
|
2013-11-17 21:01:41 +00:00
|
|
|
PHPDBG_COMMAND_D_EX(exec, "print execution context instructions", 'e', print_exec, NULL, 0),
|
|
|
|
PHPDBG_COMMAND_D_EX(opline, "print the current opline information", 'o', print_opline, NULL, 0),
|
|
|
|
PHPDBG_COMMAND_D_EX(class, "print out the instructions in the specified class", 'c', print_class, NULL, 1),
|
|
|
|
PHPDBG_COMMAND_D_EX(method, "print out the instructions in the specified method", 'm', print_method, NULL, 1),
|
|
|
|
PHPDBG_COMMAND_D_EX(func, "print out the instructions in the specified function", 'f', print_func, NULL, 1),
|
|
|
|
PHPDBG_END_COMMAND
|
2013-11-12 08:26:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* PHPDBG_PRINT_H */
|