To start 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:
runargument…
The execution stops when a first breakpoint (if any) is reached, when an error occurs, or when the program terminates.
Example 8.8. Executing the fibonacci Binary File
Assuming that you have followed the instructions in Example 8.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);