If your program can be run using a simple command line, you can load it when you start the debugger. For example:
% idb a.out
or
% idb
(idb) load a.out
% idb -gdb a.out
% idb -gdb
(idb) file a.out