Continuing Execution

The c command lets execution continue without having to single-step. In the scenario so far, given a command anywhere, the program would continue until the script ends and the shell prompt appears.

dbg2.25> c
%

The c command is also useful in other ways. After setting breakpoints, the program can be continued until it hits a breakpoint. The program can also be continued until a signal occurs, such as by pressing ^C.

r and c are action commands just like s, n, and N. Thus, they can be executed by pressing return if they were the previous action command executed. All other commands are not action commands. For example, w is not an action command. If you enter a c command, hit a breakpoint, and then enter a w command, pressing return after that continues the script.

Get Exploring Expect now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.