From: Thies C. Arntzen Date: Fri, 14 Feb 2003 12:04:03 +0000 (+0000) Subject: add really nice dump_bt function for debugging in gdb X-Git-Tag: RELEASE_0_5~1024 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1706b50bfd142ab34d9d308f4eec78709e1740a;p=php add really nice dump_bt function for debugging in gdb --- diff --git a/.gdbinit b/.gdbinit new file mode 100644 index 0000000000..b58b1ebab4 --- /dev/null +++ b/.gdbinit @@ -0,0 +1,19 @@ +define dump_bt + set $t = $arg0 + while $t + printf "[0x%08x] ", $t + if $t->function_state.function->common.function_name + printf "%s() ", $t->function_state.function->common.function_name + else + printf "??? " + end + if $t->op_array != 0 + printf "%s:%d ", $t->op_array->filename, $t->opline->lineno + end + set $t = $t->prev_execute_data + printf "\n" + end +end +document dump_bt + dumps the current execution stack. usage: dump_bt executor_globals.current_execute_data +end diff --git a/Zend/Makefile.am b/Zend/Makefile.am index 2182442d5b..a985b9dc41 100644 --- a/Zend/Makefile.am +++ b/Zend/Makefile.am @@ -14,7 +14,7 @@ libZend_la_SOURCES=\ zend_variables.c zend.c zend_API.c zend_extensions.c zend_hash.c \ zend_list.c zend_indent.c zend_builtin_functions.c zend_sprintf.c \ zend_ini.c zend_qsort.c zend_objects.c zend_object_handlers.c \ - zend_object_API.c + zend_object_API.c zend_symtable.c libZend_la_LDFLAGS = libZend_la_LIBADD = @ZEND_EXTRA_LIBS@