[PATCH 00/16] Add styling to the gdb CLI and TUI

Joel Brobecker brobecker@adacore.com
Sun Dec 23 10:49:00 GMT 2018


[/me starting to look into this patch series...]

To answer one specific question:

> Is it possible to ssh in to a Windows machine and then use gdb?  That's
> one scenario where you may want to keep the ANSI terminal escape
> sequences in the output.  It also may affect how calls to the Windows
> API are handled.

Yes, it is possible to ssh into a Windows machine. The SSH server
we used is cygwin's one, and it's a bit of a special situation as stdin
is actually not viewed as a TTY, IIRC.  This has various consequences
because we actually want GDB to think it's a TTY. This is why we have
the "set interactive mode" command.

I am no longer sure whether this is related to TTY-ness or not, but
buffering was also an issue, that caused stdout/stderr to be output
in random order. That caused a lot of grief trying to run the testsuite,
so we "fixed" that internally at AdaCore by turning buffering off
entirely.

-- 
Joel



More information about the Gdb-patches mailing list