gdb -q --args ./myprog /parm1 /parm2
but am unable to do this using .gdbinit....balanga said:... far too much to take in.
"A command file for GDB is a file of lines that are GDB commands."
$ readelf -h /bin/ls | grep Entry
Entry point address: 0x401f50
$
$ cat debugls
set args /tmp
b *0x401f50
r
$ gdb -x debugls /bin/ls