Re: Separating "shell dir" output from GDB/MI output

jingzhao.ou
2005-10-09T17:04:41Z

Thanks a lot for the reply. I really like your idea if it can be
supported on both Windows and Linux platforms.

I have another problem with MI. I want to provide a GDB console in my
application so that the user can work with GDB directly if needed.
However, if I enable the MI interpreter, the normal GDB output is
suppressed. I hope that two interpreters can work at the same time and
their outputs are directed to two different output file descriptors.
This would give me exactly what I want and all I need. :-)

Again, thanks!

Best regards,
Jingzhao

On 10/9/05, Bob Rossi <bob@brasko.net> wrote:
> 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?
> I could look into implementing this feature, since it would resolve a
> *lot* of problems regarding I/O.
>
> Thanks,
> Bob Rossi
>