This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
handling async stop condition correctly
- From: "Nick Kelsey" <nickk at ubicom dot com>
- To: <gdb at sources dot redhat dot com>
- Date: Mon, 25 Nov 2002 11:56:16 -0800
- Subject: handling async stop condition correctly
- Reply-to: "Nick Kelsey" <nickk at ubicom dot com>
Hi all,
Quick question...
When working with the serial API (specifically TCP) and the user presses the
STOP button in Insight the serial_readchar function returns SERIAL_ERROR.
How do I gracefully recover from this and keep using the TCP connection?
If I try to call serial_readchar again it segfaults :-(
I would appreciate your advice.
Thanks
Nick