[ILUG] serial ports

From: Dale Dunlea (crankie at domain ireland.com)
Date: Tue 11 Jul 2000 - 10:13:47 IST


Hi,
I'm currently running GDB using the remote serial
protocol on a target pci card. All works well.
The card has only one serial port and this is the
only way to talk to it. So if gdb grabs this, we
have no stdin/stdout. Gdb does give a means to
output a string so that's ok. But if we call the
getChar function, the card sit's waiting for a
reply and gdb sit's waiting for the card to speak
up. I've tried

echo blah > /dev/ttyS1

And that set's the card running again. But having
input using echo and output using gdb is a bit
naff. So I tried

cat /dev/ttyS1 and the card's output is
redirected to the console. But then gdb not
longer receives it. So Basically, I need some way
for the cat command to pipe it's information onto
gdb as well as to the console. So where do I pipe
it to? A fictional serial port? Anyone got any
ideas?

Thanks

Dale

_____________________________________

Get your free E-mail at http://www.ireland.com



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:50 GMT