The debugger / Debugger commands |
The tty command resets the default program input and output for future run commands.
tty filename
The tty command instructs the debugger to redirect program input and output to the specified file for future run commands.
The redirection is for your program only; your terminal is still used for debugger input and output.
(fgldb) tty /dev/ttyS0 (fgldb)