GDB 7.12 allows starting a new MI session on a PTY device when started in CLI mode: https://sourceware.org/ml/gdb/2017-01/msg00034.html