1

I have a small application let's call it program. In general to use this application I need to stream a file into it:

./program < file_with_data.txt

How do I debug such program using dbg? I don't know how to pass data from file to program when it is controlled by dbg.

1 Answer 1

1

Found it:after running:

gdb program

write

run < file_with_data.txt

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .