This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

handling async stop condition correctly


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]