1 May 2006 19:05
MinGW gdb run in non-DOS terminal
Joel Brobecker <brobecker <at> adacore.com>
2006-05-01 17:05:12 GMT
2006-05-01 17:05:12 GMT
Hello, Starting to experiment a bit with MinGW-hosted debuggers, I noticed that when it is run outside of the DOS window, the terminal handling is a bit strange. The most obvious issue is when the debugger prints an error: the actual printing on screen of the error message is delayed and only finally printed after the next GDB prompt. This happens when in a DOS window running cygwin bash, when ssh'ing from an xterm to the machine and then running GDB, or when running GDB from GPS, which opens a pseudo-tty (I think!) to GDB. On the other hand, it works great when run in a DOS window. Has anybody else seen this? Maybe there is a missing-flush issue somewhere... Or maybe there is a workaround I don't know about? Otherwise, I'll have a look at this next. Thanks, -- -- Joel
. In fact, I see the same in GPS where cygwin is nowhere in sight.
> I suppose that if the CLI is in use, you could automatically turn off
> buffering. But there may be plenty of other problems...
Maybe we should start with that. Would you mind pointing me in the
area where this should be done? I can experiment with that and see
if we have any other obvious problems.
RSS Feed