User`s guide
52
Chapter 5: Examining and Changing Data
If you use the func command to go to a function that is not on the activation
stack, dbx changes only the current source file to the one containing the
procedure’s source and the current line to the first line of the procedure:
(dbx) func bar
3 {
(dbx) file
/usr/var/tmp/dbx_examples/bar.c
Printing Activation Level Information
The dump command prints information about the variables in an activation
level:
dump Prints information about the variables in the current
procedure.
dump procedure Prints information about the variables in the specified
procedure. The procedure must be active. Starts searching
for procedure at the current activation level as set by theup
or down command. (See “Moving Within the Stack” on
page 49 for more information about the up and down
commands.)
dump . Prints information about the variables in all procedures in
all activation levels.
For example, executing dump while in a function called foo2 appears as:
(dbx) dump
foo2(i = 5) [“/usr/var/tmp/dbx_examples/foo.c”:46, 0x10001214]
To examine the information for the procedure main, enter:
(dbx) dump main
main(argc = 1, argv = 0xffffffad78) [“/usr/var/tmp/dbx_examples/test4.c”:25,
0x10000fa0]
j = 4
i = 12
r = <expression or syntax error>
a = 0
total = 0