参考文章:
gdb 调试 带参数的程序
eg1:直接带参数
gdb --args ./testprg arg1 arg2
eg2:参数在某个文件里面
gdb --args ./testprg --config=abc.conf