From 05796b355f258ee70743e4deb09ea2ad4a3a84ac Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Wed, 26 Jun 2013 05:28:01 +0000 Subject: [PATCH] gdb/ 2013-06-26 Pedro Alves Yao Qi * tracepoint.c (trace_dump_command): GDB emits an error instead of a warning when a traceframe is not selected. --- gdb/ChangeLog | 6 ++++++ gdb/tracepoint.c | 5 +---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a64706dae0e..00b8cbcfcf2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2013-06-26 Pedro Alves + Yao Qi + + * tracepoint.c (trace_dump_command): GDB emits an error + instead of a warning when a traceframe is not selected. + 2013-06-26 Pedro Alves Yao Qi diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 9646090ef31..05f51ea428b 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -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); -- 2.30.2