up

Move a specific number of frames up the stack and print them.

Syntax

up [ num ]

Parameters

num

A numeric expression of non-negative value. The default value is 1.

Description

This command moves to the stack frame num levels above the current frame and then prints those frames. The default value for num is 1.

If the specified number of levels exceeds the number of active calls on the stack in the specified direction, the debugger issues a warning message and the call frame does not change.

When the current call frame changes, the debugger displays the source line corresponding to the last instruction executed in the function executing the selected call frame.

Example

GDB Mode:

(idb) up 2
#2  0x08051a3c in main () at src/x_list.cxx:203
203     nodeList.print();
(idb) list 200,+5
200     CompoundNode* cNode2 = new CompoundNode(10.123, 5);
201     nodeList.append(cNode2); {static int somethingToReturnTo; somethingToReturnTo++; }
202
203     nodeList.print();
204 }

See Also


Submit feedback on this help topic

Copyright © 2001-2011, Intel Corporation. All rights reserved.