When connecting to a teletype, LLDB sets baud rate and switches it to
raw mode. Restore the original attributes on disconnect.
Details
- Reviewers
labath teemperor krytarowski emaste
Diff Detail
Event Timeline
Why is it important to restore the tty settings? (just asking, I have no clue about how this is supposed to work)
Well, maybe my logic is wrong but the idea is that since LLDB overrides serial port parameters, it should restore them to the original state when it's done with the serial port. Roughly the principle that the program cleans up after itself.
That does not sound unreasonable, though I'm not sure how much is it actually useful. Do you know if its like standard practice when working with serial ports, ttys and stuff?
TTTT, I'm not very happy that we have _any_ tty code inside the ConnectionFileDescriptorPosix class, so I'm not enthusiastic about expanding it. Let's see how the RFC goes first...
To be honest, I don't really know. GDB doesn't seem to do it. minicom does restore the initial state.
TTTT, I'm not very happy that we have _any_ tty code inside the ConnectionFileDescriptorPosix class, so I'm not enthusiastic about expanding it. Let's see how the RFC goes first...
Do you think we should move it somewhere else? With the parameters being configurable via settings, it will probably make sense to move it into gdb-remote anyway.