Re: GDB has problems with getting commands piped to STDIN



I'm trying to pipe commands to gdb ...

gdb is unreasonable unless stdin is a tty or pty.
A plain pipe does not work well, as you discovered.

If the gdb commandline arguments -x and/or -batch
are not sufficient, then probably you must use a pty.

--
.



Relevant Pages

  • Re: csh history and pts
    ... detection" with MPSAFE TTY, but grepping through the source and asking ... I still have no idea what "pty ... detection" is and why csh has the urge to "detect pty's". ... the shell thinks it is running under a window system (i.e., ...
    (freebsd-current)
  • Re: Christmas list for the kernel
    ... >> The basic difference between a pty and tty is that a pty connects to a ... >> ssh) on the other end, while a tty connects to the kernel doing all the ... > I forgot about the kernel vs user space termination issue. ... > One solution would be to not create the tty nodes and instead modify ...
    (Linux-Kernel)
  • Re: I dont understand the Net::Telnet error
    ... my($pid, $pty, $tty, $tty_fd); ... problem connecting to host: Welcome to FreeBSD! ... What is causing this error message and more to the point. ...
    (comp.lang.perl.misc)
  • Re: Christmas list for the kernel
    ... >> The basic difference between a pty and tty is that a pty connects to a ... >> ssh) on the other end, while a tty connects to the kernel doing all the ... > I forgot about the kernel vs user space termination issue. ... > console implementation. ...
    (Linux-Kernel)
  • Re: I dont understand the Net::Telnet error
    ... my($pid, $pty, $tty, $tty_fd); ... problem connecting to host: Welcome to FreeBSD! ...
    (comp.lang.perl.misc)