I already know how to pass parameters in GDB mode by running: "run parameters". However, when continuing to debug by using n or s to go, I would like to pass data to my program, let say a text/string. For example, I want to send a string as "Testing" to my program because my program always waits to receive command from console. If I type "Testing" it will say "undefined command: "Testing". Try help".
(gdb) b 100
(gdb) run "pass parameters to program here"
(gdb) n
(gdb) Now I want to send a string to my program, how can I do it?
So how can I do to send this text to my program while debugging GDB in step mode? Thanks very much.