2013-11-11 23:40:03 +00:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| PHP Version 5 |
|
|
|
|
+----------------------------------------------------------------------+
|
2014-01-17 22:09:07 +00:00
|
|
|
| Copyright (c) 1997-2014 The PHP Group |
|
2013-11-11 23:40:03 +00:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| 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> |
|
2013-12-18 10:02:50 +00:00
|
|
|
| Authors: Bob Weinand <bwoebi@php.net> |
|
2013-11-11 23:40:03 +00:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PHPDBG_LIST_H
|
|
|
|
#define PHPDBG_LIST_H
|
|
|
|
|
2013-11-14 15:46:06 +00:00
|
|
|
#include "TSRM.h"
|
2013-11-17 21:01:41 +00:00
|
|
|
#include "phpdbg_cmd.h"
|
2013-11-17 11:15:53 +00:00
|
|
|
|
2013-11-17 21:01:41 +00:00
|
|
|
#define PHPDBG_LIST(name) PHPDBG_COMMAND(list_##name)
|
|
|
|
#define PHPDBG_LIST_HANDLER(name) PHPDBG_COMMAND_HANDLER(list_##name)
|
2013-11-14 15:46:06 +00:00
|
|
|
|
|
|
|
PHPDBG_LIST(lines);
|
2013-11-16 18:53:12 +00:00
|
|
|
PHPDBG_LIST(class);
|
|
|
|
PHPDBG_LIST(method);
|
2013-11-14 15:46:06 +00:00
|
|
|
PHPDBG_LIST(func);
|
|
|
|
|
2013-11-16 23:11:39 +00:00
|
|
|
void phpdbg_list_function_byname(const char *, size_t TSRMLS_DC);
|
2013-11-12 02:35:07 +00:00
|
|
|
void phpdbg_list_function(const zend_function* TSRMLS_DC);
|
2014-10-17 17:32:02 +00:00
|
|
|
void phpdbg_list_file(const char*, uint, int, uint TSRMLS_DC);
|
2013-11-14 15:46:06 +00:00
|
|
|
|
2014-02-02 16:35:28 +00:00
|
|
|
extern const phpdbg_command_t phpdbg_list_commands[];
|
2013-11-11 23:40:03 +00:00
|
|
|
|
2014-10-02 23:29:41 +00:00
|
|
|
void phpdbg_init_list(TSRMLS_D);
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char *filename;
|
|
|
|
char *buf;
|
|
|
|
size_t len;
|
|
|
|
#if HAVE_MMAP
|
|
|
|
void *map;
|
|
|
|
#endif
|
|
|
|
uint lines;
|
|
|
|
uint line[1];
|
|
|
|
} phpdbg_file_source;
|
|
|
|
|
2013-11-11 23:40:03 +00:00
|
|
|
#endif /* PHPDBG_LIST_H */
|