Re: Include putpkt in TRY_CATCH. PR gdb/15275

Gareth McMullin
2013-03-28T22:38:42Z

On Thu, Mar 28, 2013 at 10:07 AM, Pedro Alves <palves@redhat.com> wrote:
> So, per Gareth's analysis, with tcp, where this is not reproducible,
> we don't error out on sends, but instead detect the error on the
> subsequent readchar. When that read fails, we throw the target away,
> and throw TARGET_CLOSE_ERROR. He was suggesting making ser-unix.c
> fake success too on failed writes, so we'd get to readchar detecting
> the error on serial ports too. But, why not let the error
> propagate out of serial_write, and catch it at the remote level
> instead of delaying the inevitable? IOW, throw away the target
> if writing fails too.

I like this approach, it is a better solution. Thank you.

Gareth