gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 27 Mar 2013 18:20:10 +0000 (18:20 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 27 Mar 2013 18:20:10 +0000 (18:20 +0000)
PR gdb/15275
* remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.

gdb/ChangeLog
gdb/remote.c

index 81ac70d2b0cac28719499a64d43dcc7f60ed760e..95a9e75a9eb9d552b400f2b52d746920e0b390d6 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-27  Gareth McMullin  <gareth@blacksphere.co.nz>
+
+       PR gdb/15275
+       * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
+
 2013-03-27  Pedro Alves  <palves@redhat.com>
 
        * top.c (history_size): Rename to ...
index ce477cfe6ad360e1f26894d0e9e440705139594e..865995378d70a55187e002fc64bedff11ffa94b5 100644 (file)
@@ -10692,10 +10692,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)