pop Command

Related Topics:

Popping the Call Stack One Function at a Time Moving Around the Call Stack

The pop command removes one or more frames from the call stack.

You can pop only to a frame for a function that was compiled with -g. The program counter is reset to the beginning of the source line at the callsite. You cannot pop past a function call made by the debugger; use pop -c.

Normally a pop command calls all the C++ destructors associated with the popped frames; you can override this behavior by setting the dbx pop_auto_destruct Environment Variable to off.

Syntax
pop Pop current top frame from stack
pop number Pop number frames from stack
pop -f number Pop frames from stack until specified frame number
pop -c Pop the last call made from the debugger.

where:

number is the number of frames to pop from the stack.