[konsole] [Bug 462495] New: Konsole need to implement openpty mode to support gdb's --tty option

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Thu Dec 1 13:10:34 GMT 2022


https://bugs.kde.org/show_bug.cgi?id=462495

            Bug ID: 462495
           Summary: Konsole need to implement openpty mode to support
                    gdb's --tty option
    Classification: Applications
           Product: konsole
           Version: unspecified
          Platform: unspecified
                OS: All
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: konsole-devel at kde.org
          Reporter: chiheng.xu at gmail.com
  Target Milestone: ---

implement openpty mode.
do not create child process, instead, open a pty, and output the slave name of
pty device.
used in gdb debugging.
utilize this gdb command line option:
--tty=TTY          Use TTY for input/output by the program being debugged.

$ OPENPTY= konsole
/dev/pty1

echo hello >/dev/pty1

gdb --tty=/dev/pty1 emacs
run



mintty implementation
https://github.com/xu-chiheng/mintty/commit/f0e80e1876502a83c8e5d1b5c24a4c714a0b0e18
konsole implemention on v4.9.4
https://github.com/xu-chiheng/konsole/commit/f7b94b0756101239279630d06309128d508aaf4f

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list