Red Hat Training

A Red Hat training course is available for Red Hat Developer Toolset

7.6. Starting Execution

To start an execution of the program you are debugging, run the following command:
run
If the program accepts any command line arguments, you can provide them as arguments to the run command:
run argument
The execution stops when the first breakpoint (if any) is reached, when an error occurs, or when the program terminates.

Example 7.8. Executing the fibonacci Binary File

Assuming that you have followed the instructions in Example 7.5, “Setting a New Breakpoint”, you can execute the fibonacci binary file by running the following command:
(gdb) run
Starting program: /home/john/fibonacci

Breakpoint 1, main (argc=1, argv=0x7fffffffe4d8) at fibonacci.c:10
10          printf("%ld ", b);