- Add "zbacktrace" user-defined command.

This commit is contained in:
Moriyoshi Koizumi 2004-02-16 20:20:55 +00:00
parent 7a7927c146
commit 097bfda39d

View file

@ -273,6 +273,18 @@ document printzops
dump operands of the current opline dump operands of the current opline
end 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 define zmemcheck
set $p = alloc_globals.head set $p = alloc_globals.head
set $stat = "?" set $stat = "?"
@ -345,4 +357,3 @@ document zmemcheck
usage: zmemcheck [ptr]. usage: zmemcheck [ptr].
if ptr is 0, all blocks will be listed. if ptr is 0, all blocks will be listed.
end end