Skip to content

Commit

Permalink
- srm_llist > xdebug_llist
Browse files Browse the repository at this point in the history
- prework for function call traces

SVN Rev: 47
  • Loading branch information
derickr committed May 9, 2002
1 parent 9fdaee9 commit b5be71c
Show file tree
Hide file tree
Showing 5 changed files with 255 additions and 135 deletions.
4 changes: 2 additions & 2 deletions config.m4
@@ -1,10 +1,10 @@
dnl $Id: config.m4,v 1.1.1.1 2002-04-24 14:26:19 derick Exp $
dnl $Id: config.m4,v 1.2 2002-05-09 12:12:44 derick Exp $
dnl config.m4 for extension xdebug

PHP_ARG_ENABLE(xdebug, whether to enable eXtended debugging support,
[ --enable-xdebug Enable xdebug support])

if test "$PHP_XDEBUG" != "no"; then
PHP_NEW_EXTENSION(xdebug, xdebug.c srm_llist.c, $ext_shared)
PHP_NEW_EXTENSION(xdebug, xdebug.c xdebug_llist.c, $ext_shared)
AC_DEFINE(HAVE_XDEBUG,1,[ ])
fi
18 changes: 13 additions & 5 deletions php_xdebug.h
Expand Up @@ -21,7 +21,7 @@

#include "php.h"

#include "srm_llist.h"
#include "xdebug_llist.h"

extern zend_module_entry xdebug_module_entry;
#define phpext_xdebug_ptr &xdebug_module_entry
Expand Down Expand Up @@ -52,6 +52,10 @@ PHP_FUNCTION(xdebug_enable);
PHP_FUNCTION(xdebug_disable);
PHP_FUNCTION(xdebug_is_enabled);

PHP_FUNCTION(xdebug_start_trace);
PHP_FUNCTION(xdebug_stop_trace);
PHP_FUNCTION(xdebug_get_function_trace);

#if MEMORY_LIMIT
PHP_FUNCTION(xdebug_memory_usage);
#endif
Expand All @@ -62,14 +66,18 @@ typedef struct function_stack_entry {
int lineno;
int varc;
char *vars[20];
int level;
int refcount;
} function_stack_entry;


ZEND_BEGIN_MODULE_GLOBALS(xdebug)
int level;
srm_llist *stack;
int max_nesting_level;
zend_bool default_enable;
int level;
xdebug_llist *stack;
xdebug_llist *trace;
int max_nesting_level;
zend_bool default_enable;
zend_bool do_trace;
ZEND_END_MODULE_GLOBALS(xdebug)


Expand Down

0 comments on commit b5be71c

Please sign in to comment.