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

Joel Brobecker
2018-12-23T10:49:07Z

[/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