I'm trying to use gdb to debug an EPICS soft-ioc on linux (RHEL-5).
Does anyone know how to redirect the iocsh stdin and stdout to
another terminal?
The gdb manual says to use "set inferior-tty /dev/pts/0", but when I
try it I get the following warning on /dev/pts/0:
warning: GDB: Failed to set controlling terminal: Operation not permitted
I then see normal iocsh output up to the
iocInit() call, but then I get an error on the gdb tty that says
"Spurious thread death event" and typing commands on /dev/pts/0
results in that command being sent to bash instead of the gdb iocsh.
Any suggestions would be welcome.
Thanks,
- Bruce Hill