10.2. Starting your Program

run, r

Use the run command to start your program under the debugger. You must first specify the program name with an argument to the debugger (see Chapter 8.), or by using the file or exec-file command (see Section 18.1).

When you issue the run command, your program begins to execute immediately. See Stopping and continuing: Stopping, for discussion of how to arrange for your program to stop. Once your program has stopped, you may call functions in your program, using the print or call commands. See Chapter 14.

If the modification time of your symbol file has changed since the last time the debugger read its symbols, the debugger discards its symbol table, and reads it again. When it does this, the debugger tries to retain your current breakpoints.