Debugging w/ piped input

Debugging w/ piped input

I need to debug a program that relies on piped input, i.e. | foo

where foo is created with ifort. I've tried everything I can think of (which isn't much) based on the idb manual, such as:

[roberts628@AEDE320RH code]$ cat | ./agrisk &
[1] 17088
[roberts628@AEDE320RH code]$ jobs
[1]+ Done cat | ./agrisk
[roberts628@AEDE320RH code]$ idb -pid 17088 agrisk
Linux Application Debugger for 32-bit applications, Version 7.3.2, Build 20031209
object file name: agrisk
Error: could not attach to the debuggee

Could not attach to process 17088.
No image loaded ... Recovering ...

Ideally, I'd like to get it to run in DDD, but I figure that if I can't even get it to run in the shell, then DDD can wait.

I'm sorry that this is more of a linux question than ifort, but thanks for any thoughts/suggestions.


1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.