cvs: php-src / .gdbinit
| From: | Moriyoshi Koizumi | Date: | Mon, 16 Feb 2004 20:20:56 +0000 |
| Subject: | cvs: php-src / .gdbinit | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-26247@lists.php.net to get a copy of this message | ||
moriyoshi Mon Feb 16 15:20:56 2004 EDT
Modified files:
/php-src .gdbinit
Log:
- Add "zbacktrace" user-defined command.
http://cvs.php.net/diff.php/php-src/.gdbinit?r1=1.9&r2=1.10&ty=u
Index: php-src/.gdbinit
diff -u php-src/.gdbinit:1.9 php-src/.gdbinit:1.10
--- php-src/.gdbinit:1.9 Mon May 5 07:43:50 2003
+++ php-src/.gdbinit Mon Feb 16 15:20:55 2004
@@ -273,6 +273,18 @@
dump operands of the current opline
end
+define zbacktrace
+ ____executor_globals
+ dump_bt $eg.current_execute_data
+end
+
+document zbacktrace
+ prints backtrace.
+ This command is almost a short cut for
+ > (gdb) ____executor_globals
+ > (gdb) dump_bt $eg.current_execute_data
+end
+
define zmemcheck
set $p = alloc_globals.head
set $stat = "?"
@@ -345,4 +357,3 @@
usage: zmemcheck [ptr].
if ptr is 0, all blocks will be listed.
end
-