.gdbinit
set args aaaa
b main
r
gdb prog
получаем
Type "apropos word" to search for commands related to "word"...
No symbol table is loaded. Use the "file" command.
Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal]
/opt/home/lve/.gdbinit:3: Error in sourced command file:
No executable file specified.
Use the "file" or "exec-file" command.
Reading symbols from prog...done.
(gdb)
20 лет оно работало!
Какого хрена gdb игнорирует аргумент «prog» ?
Если в .gdbinit вписать
file prog
b main
r
Как вернуть стандартное поведение?