In This Book

2

Stopping the Target Program

To terminate the target program, use the kill command or select File:Unload Executable . When the target program terminates, the debugger continues to run. Use quit or select File:Quit to terminate the debugger.

Use the free command to detach the debugger from the target program while allowing the target program to continue executing.

Restarting the Target Program

Using the File Menu

To restart the target program from the menu bar, select:

File:Rerun to restart the target without changing the runtime environment.

File:Rerun . . . to restart the target with changes to the runtime environment.

Using the restart Command

Use the restart command to restart the target program while preserving breakpoints and watchpoints.

The restart command restarts the currently loaded target program. If no target program is loaded, it restarts the last target program that ran in the current debugging session.

A program may not restart correctly if its object ￿le was modi￿ed after the original debug command. Breakpoin ts, for example, ma y be reset at inappropriate lo cations after restarting.

If you do not want to preserve breakpoints, watchpoints, and symbol information, kill the target program (or let it ￿nish executing) and re-en ter the debug command.

Compiling, Loading, and Executing the Target Program 2-9