This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Include putpkt in TRY_CATCH. PR gdb/51275
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Gareth McMullin <gareth at blacksphere dot co dot nz>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 20 Mar 2013 18:08:29 +0100
- Subject: Re: Include putpkt in TRY_CATCH. PR gdb/51275
- References: <CAL8qUbrD=fgMP7nE0O8tX=AXifUpQXas25o_4SfK4p79rfoUpw at mail dot gmail dot com> <CAL8qUbqjtBKJFJZ6dPS78Zh8Eb3b33U9JXTmn1pS3Le93xt7Rw at mail dot gmail dot com>
On Thu, 14 Mar 2013 03:02:29 +0100, Gareth McMullin wrote:
> --- a/gdb/remote.c
> +++ b/gdb/remote.c
> @@ -10695,10 +10695,9 @@ remote_get_trace_status (struct trace_status *ts)
>
> trace_regblock_size = get_remote_arch_state ()->sizeof_g_packet;
>
> - putpkt ("qTStatus");
> -
> TRY_CATCH (ex, RETURN_MASK_ERROR)
> {
> + putpkt ("qTStatus");
> p = remote_get_noisy_reply (&target_buf, &target_buf_size);
> }
> if (ex.reason < 0)
Could you test this patch instead?
Fix 7.5 regression crashing GDB if gdbserver dies
http://sourceware.org/ml/gdb-patches/2013-03/msg00691.html
I guess it should also fix it but I probably cannot not replicate your serial
stub conditions here.
Thanks,
Jan