mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- Add "zbacktrace" user-defined command.
This commit is contained in:
parent
7a7927c146
commit
097bfda39d
1 changed files with 12 additions and 1 deletions
13
.gdbinit
13
.gdbinit
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue