gdb/
authorYao Qi <yao@codesourcery.com>
Wed, 26 Jun 2013 05:28:01 +0000 (05:28 +0000)
committerYao Qi <yao@codesourcery.com>
Wed, 26 Jun 2013 05:28:01 +0000 (05:28 +0000)
2013-06-26  Pedro Alves  <pedro@codesourcery.com>
    Yao Qi  <yao@codesourcery.com>

* tracepoint.c (trace_dump_command): GDB emits an error
 instead of a warning when a traceframe is not selected.

gdb/ChangeLog
gdb/tracepoint.c

index a64706dae0e3a28017c870757b42515ecb94be7b..00b8cbcfcf2e2a53f5375a9703545bdc7c6258ed 100644 (file)
@@ -1,3 +1,9 @@
+2013-06-26  Pedro Alves  <pedro@codesourcery.com>
+           Yao Qi  <yao@codesourcery.com>
+
+       * tracepoint.c (trace_dump_command): GDB emits an error
+        instead of a warning when a traceframe is not selected.
+
 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
            Yao Qi  <yao@codesourcery.com>
 
index 9646090ef31bfdf1975ccf22cb936003d7233dfe..05f51ea428b8d3d674405ee2cc8160104bd55ced 100644 (file)
@@ -2982,10 +2982,7 @@ trace_dump_command (char *args, int from_tty)
   struct cleanup *old_chain;
 
   if (tracepoint_number == -1)
-    {
-      warning (_("No current trace frame."));
-      return;
-    }
+    error (_("No current trace frame."));
 
   old_chain = make_cleanup (null_cleanup, NULL);
   t = get_tracepoint (tracepoint_number);