![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Debug > Step > Run ReturnedThe Run Returned command executes until the current stack frame is completed and stops execution before the next Ada or C/C++ statement. It can also be invoked from the Execution menu in any debugger window.
Run Returned sets a breakpoint in the subprogram (Ada) or function (C/C++) that called the current subprogram (Ada) or function (C/C++) (that is, one frame down from the current frame). The breakpoint is reached immediately when the current entity returns. The current subprogram (Ada) or function (C/C++) is the one represented by the current frame. Immediately means that the Run Returned breakpoint is set in the first machine instruction following the current subprogram (Ada) or function (C/C++) return. This may not be on a source statement boundary. The breakpoint is removed automatically when it is reached. To get to the beginning of the next statement, use the Step Over command.
Usually, Run Returned is used for stopping at the return of the current subprogram (Ada) or function (C/C++) after entering it by mistake with the Step Statement or Step Instruction command.
Run Returned is effectively setting a bd breakpoint, then executing a Continue command.
Note: The Run Returned command is equivalent to typing the following sequence of commands in the Source Window or Command Line Pane: bd 'g. If the Source window is displayed, pressing R in it is equivalent to selecting Run Returned.
Additional Topics
Rational Software Corporation http://www.rational.com support@rational.com techpubs@rational.com Copyright © 1993-2001, Rational Software Corporation. All rights reserved. |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |