I have a program that takes input from stdin and also takes some parameters from command line. It looks like this: cat input.txt > mypr
I have a program that takes input from stdin and also takes some parameters from command line. It looks like this:
cat input.txt > mypr
And if you do not need to debug from the very beginning you can also attach to an already running process by using:
$ gdb myprogram xxx
where xxx is the process id. Then you do not need to tell gdb the starting arguments.