In this article, I want to share all my findings and gathered information to help debugging with GDB.
1. How to set program arguments when debugging a program.
ex) If you want to execute following command, 'progname -o outdir inputfilename'
Then you can provide program's arguments to gdb like this
$ gdb -ex 'set args -o outdir inputfilename' progname