aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>2009-12-30 22:32:03 +0000
committerStan Shebs <shebs@codesourcery.com>2009-12-30 22:32:03 +0000
commitd35130122459b29ac7f41123d224aa61d00625f6 (patch)
tree1f805ce3903a3c79a4b0efe9ea7ab57a6fb56cea
parent818bf354a7114bb7116f07c0d187fbe6c9c15c31 (diff)
downloadgdb-d35130122459b29ac7f41123d224aa61d00625f6.zip
gdb-d35130122459b29ac7f41123d224aa61d00625f6.tar.gz
gdb-d35130122459b29ac7f41123d224aa61d00625f6.tar.bz2
* tracepoint.c (trace_status_command): Add some status output.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/tracepoint.c12
2 files changed, 16 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e7e1802..c05ac70 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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>
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 2e3e2e8..201c859 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -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."));