]> granicus.if.org Git - php/commitdiff
- Add "zbacktrace" user-defined command.
authorMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 16 Feb 2004 20:20:55 +0000 (20:20 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 16 Feb 2004 20:20:55 +0000 (20:20 +0000)
.gdbinit

index 1174b900f19f5356d932415d0d35e447eff2c4e5..7c58e86fda3a1bba6ad858b8a790324d9fb85e2f 100644 (file)
--- a/.gdbinit
+++ b/.gdbinit
@@ -273,6 +273,18 @@ document printzops
        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 @@ document zmemcheck
        usage: zmemcheck [ptr].
        if ptr is 0, all blocks will be listed.
 end
-