Debugging a Program With dbx

Walking the Stack and Returning Home

Moving up or down the stack is referred to as "walking the stack." When you visit a function by moving up or down the stack, dbx displays the current function and the source line. The location you start from, home, is the point where the program stopped executing. From home, you can move up or down the stack using the up, down, or frame commands.

The dbx commands up and down both accept a number argument that instructs dbx to move some number of frames up or down the stack from the current frame. If number is not specified, the default is one. The --h option includes all hidden frames in the count.