How to passing input data in GDB mode for programming C. Already passed parameters and run program
问题 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