gdb.org 399 B

GDB

You can debug a C program in GDB with an argument with "set args"

gdb RET

(gdb) show args Argument list to give program being debugged when it is started is "".

(gdb) set args -f hello.c Argument list to give program being debugged when it is started is "hello.c".

run