Show Table of Contents
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);
Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.