Hello,

I've run into a problem with the tty command.  I'd like to be able to
step through a program that uses curses, so from GDB with emacs I use 
"tty /dev/tty<term #>" to redirect the program's output to another 
terminal and I use "set env TERM xterm" to make sure that everybody 
nows that the terminal I'm redirecting the program to is an xterm.  
Everything runs fine until the program I'm stepping through expects
user input.  GDB, naturally, waits for the input, but when I try to 
provide the input to the separate terminal where the program's output
is being displayed, the program starts getting SIGTTIN signals. 

It appears that tty is redirecting the program's output but not its
input.  

gdb --version yields:

GNU gdb 19990928
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".

Thanks for your help.

-chris



Reply via email to