2011-06-28

How execute application with gdb, which read stdin and params

Suppose we have an application, which reads something from standard input and accept command line arguments.

Q : How to execute application under GDB?
 
A :gdb application
   gdb> run parameters ... < input_file

No comments:

Post a Comment