Nick Roberts wrote: > > > Nick, > > > > The mi->err is used for displaying debugger errors, not the error coming > > from the target execution. > > The main problem with MI is that we can not distinguish target stdout > > from target stderr. > >In that case, can you create a new MI channel? e.g. > > > I'm not sure creating a new mi stream is on fashion, but I'm not opposed to that. My original problem was the following: > When debugging a program thru Eclipse or any front end using MI, > the stderr of the debugged program is lost. > This problem occures only on remote targets since native ones don't > use MI stream for output. Your solution won't fix my problem since current Eclipse uses MI 1 and will never recognize the new prefix. What we can do is creating a new error stream mi->targerr but with a prefix that will be: - the same than the mi->targ for MI 1 and 2, means "@" - a new one like you proposed for MI versoin > 2: "#" for instance. I attach a new patch in that sense. It does not include the documentation patch about MI new stream but it's just to give you an idea. Any comment ? Denis