User`s guide

80
Chapter 6: Controlling Program Execution
Using the
return
Command
If you step into a procedure and then decide you don’t want to step through
the rest of it, use return to finish executing the procedure and return to the
calling procedure.
The format of the return command is:
return Continues execution until control returns to the procedure
that invoked the return command.
return proc Continues execution until control returns to the named
procedure. Execution continues, unless stopped by a
breakpoint, until the latest invocation of the procedure
named by proc at the time the command was issued is
reached. Execution doesn’t stop at subsequent invocations
of the same procedure. The search for the frame to return to
starts with the previous frame, because the current frame is
skipped in looking for a frame whose name matches proc. If
execution is stopped for any reason, this command is
cancelled.
Starting at a Specified Line
When you continue your program, you typically do so at the place where it
stopped using the cont command. However, you can also force your
program to continue at a different address by using the goto command:
goto line Begins execution at the specified line. You may not use the
goto command to resume execution with a line outside of
the current procedure.