[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
AW: [cdt-debug-dev] Pipes, redirection of input
|
Jean-Claude,
not so dumb, your questions, not at all. I think that the standard CDT does not allow piping in standard input when starting a debug session (and I'll be glad to learn otherwise ...)
You might be successful when trying the Zylin embedded debugger which allows you to specify the debugger's startup commands and then you can tell gdb to use
r < somefile.txt
to start your program. Though I am not sure that gdb does a shell interpretation with it's run command.
And that's all my wisdom.
Maybe this would make a great enhancement request ...
Cheers
Norbert
-----Ursprüngliche Nachricht-----
Von: cdt-debug-dev-bounces@xxxxxxxxxxx [mailto:cdt-debug-dev-bounces@xxxxxxxxxxx] Im Auftrag von Jean-Claude Gervais
Gesendet: Mittwoch, 22. März 2006 06:13
An: cdt-debug-dev@xxxxxxxxxxx
Betreff: [cdt-debug-dev] Pipes, redirection of input
Hello,
Sorry for the (probably) dumb question:
I am debugging a program that would normally be used like this:
cat somefile.txt | program
In other words, my program gets fed a file from the console and
processes it by reading and writing to stdin and stdout.
How can I set up my project to accept its input like this during
debugging? Can I use redirection and piping while debugging?
How do I set the debugging options to pipe the output of a 'cat' command
to my program?
Thanks in advance.
_______________________________________________
cdt-debug-dev mailing list
cdt-debug-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-debug-dev