This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Separating "shell dir" output from GDB/MI output
> Date: Sun, 9 Oct 2005 08:33:26 -0400
> From: Bob Rossi <bob@brasko.net>
> Cc: gdb@sources.redhat.com
>
> I think the best idea we've had so far for solving problems like this is
> to add an option to GDB to have it output GDB/MI data on a file
> descriptor X. For instance,
> gdb -i=mi -mi-out-fd=30
> and then when you fork/exec GDB you dup the 30 file descriptor so that
> you can read the output.
>
> Eli, do you know if this approach would be portable to windows nativly?
dup works on Windows as it does on Posix platforms, but I'm not sure I
understand the other details of what you suggest. Could you post a
pseudo-code description of what you have in mind?