Re: Include putpkt in TRY_CATCH. PR gdb/15275

Jan Kratochvil
2013-04-02T14:12:09Z

On Tue, 02 Apr 2013 16:03:25 +0200, Pedro Alves wrote:
> On 03/29/2013 02:02 PM, Jan Kratochvil wrote:
> > I agree this fix is better. I will revert the previous check-in after this
> > check-in.
>
> Now pushed.

Checked in the revert:
http://sourceware.org/ml/gdb-cvs/2013-04/msg00016.html
and for 7.6:
http://sourceware.org/ml/gdb-cvs/2013-04/msg00017.html

Thanks,
Jan

http://sourceware.org/ml/gdb-cvs/2013-04/msg00016.html

--- src/gdb/ChangeLog 2013/04/02 13:51:06 1.15355
+++ src/gdb/ChangeLog 2013/04/02 14:09:08 1.15356
@@ -1,3 +1,9 @@
+2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Revert this patch:
+ PR gdb/15275
+ * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
+
2013-04-02 Pedro Alves <palves@redhat.com>

PR gdb/15275
--- src/gdb/remote.c 2013/04/02 13:51:07 1.536
+++ src/gdb/remote.c 2013/04/02 14:09:08 1.537
@@ -10713,9 +10713,10 @@

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)