Prism 6.0 Reference Manual

dump

Prints the names and values of local variables.

SYNTAX

dump [function |...]

DESCRIPTION

Use the dump command to print the names and values of all the local variables in the function or procedure you specify. If you omit function, Prism uses the current function. If you specify a period (.) dump follows all stack frames from the current one back to main, and prints the names and values of all local variables in the functions in the stack.


Note -

The dump command is not available in MP Prism.


EXAMPLE

(prism) stop at 8
(1) stop at "dump.c":8
(prism) stop at 19
(2) stop at "dump.c":19
(prism) run
Running: /usr/users/tjl/dump.x
Debugee pid is 13302
stopped in procedure "main" at "dump.c":8 
8      sub();
(prism) dump         
    # All local variables from main()
`dump.x`dump.c`main`z = 1.900000
`dump.x`dump.c`main`x = 9
`dump.x`dump.c`main`y = 19.190000
(prism) c
stopped in procedure "sub" at "dump.c":19 
19      y = y + x;
(prism) where        
    # Show the active procedures on the call stack
sub(), line 19 in "dump.c"
main(), line 8 in "dump.c"
(prism) dump .       
    # All local variables in all active procedures

`dump.x`dump.c`sub:19`y = 100         # from nested for() { } block
`dump.x`dump.c`sub`z = -9.100000      # from sub()
`dump.x`dump.c`sub`x = 1              # from sub()
`dump.x`dump.c`sub`y = 91.910000      # from sub()
`dump.x`dump.c`main`z = 1.900000      # from main()
`dump.x`dump.c`main`x = 9             # from main()
`dump.x`dump.c`main`y = 19.190000     # from main()