gdb - debugging with piped input (not arguments) [duplicate]

gdb ./vuln_prog
run < filename_with_input