Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Proposing a PersistentPTY class

Hi,


I'm proposing to introduce a new PersistentPTY class (API).

I wanted to check if anyone had concerns about that.


A PersistentPTY will remain available after disconnecting to its

I/O streams. It can then be used again by re-connecting to the streams.

Cleanup must be done explicitly.


With the full GDB console, a user can choose to directly restart a process

from the console. In this case, the new instance of the process will 

continue to use the same PTY as the original instance, by re-opening

the streams to that PTY.  The new PeristentPTY class allows this to work.


You can see the details at:

https://git.eclipse.org/r/#/c/76462/26/core/org.eclipse.cdt.core.native/src/org/eclipse/cdt/utils/pty/PersistentPTY.java


Thanks


Marc


Back to the top