* tracepoint.c (trace_status_command): Add some status output.
authorStan Shebs <shebs@codesourcery.com>
Wed, 30 Dec 2009 22:32:03 +0000 (22:32 +0000)
committerStan Shebs <shebs@codesourcery.com>
Wed, 30 Dec 2009 22:32:03 +0000 (22:32 +0000)
gdb/ChangeLog
gdb/tracepoint.c

index e7e1802e65ff003f83ee7c562569b5c2dba3f195..c05ac70d5c3c737efdac4ef453ce6905fd601476 100644 (file)
@@ -1,3 +1,7 @@
+2009-12-30  Stan Shebs  <stan@codesourcery.com>
+
+       * tracepoint.c (trace_status_command): Add some status output.
+
 20090-12-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
             Thiago Jung Bauermann  <bauerman@br.ibm.com>
 
index 2e3e2e84f5c11266055ffe0611671a1703184267..201c8590e4f3a05b0456227b0eeb96da44f0aed9 100644 (file)
@@ -1736,6 +1736,18 @@ trace_status_command (char *args, int from_tty)
 
       /* exported for use by the GUI */
       trace_running_p = (target_buf[1] == '1');
+
+      if (trace_running_p)
+       printf_filtered (_("Trace is running on the target.\n"));
+      else
+       printf_filtered (_("Trace is not running on the target.\n"));
+
+      if (traceframe_number >= 0)
+       printf_filtered (_("Looking at trace frame %d, tracepoint %d.\n"),
+                        traceframe_number, tracepoint_number);
+      else
+       printf_filtered (_("Not looking at any trace frame.\n"));
+
     }
   else
     error (_("Trace can only be run on remote targets."));