Execute the Entire Program Using gdb

Learn how to run an entire program and how to provide command line arguments using gdb.

Let’s see how a program can be executed using gdb and how to provide command line arguments to it.

Run the entire program using gdb

To run the entire program, execute the following command in the gdb terminal.

run

This command will be equivalent to ./a.out in the terminal

Get hands-on with 1200+ tech skills courses.