In terminal I'de execute my program like this:
echo "/avr/prj/test" | ./buildconvupload
But my program fails if I pipe an input into it. It works perfectly if I run it normally: ./buildconvupload
How can I simulate a pipe input in gdb so I can debug this program?
I thought this might work, but it doesn't(wild guess, wasn't expecting it to work):
(gdb) echo "/avr/prj" | run
echo "/avr/prj/test" | ./buildconvupload
But my program fails if I pipe an input into it. It works perfectly if I run it normally: ./buildconvupload
How can I simulate a pipe input in gdb so I can debug this program?
I thought this might work, but it doesn't(wild guess, wasn't expecting it to work):
(gdb) echo "/avr/prj" | run