This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 2/6] Emit error in tdump command when traceframe is not selected.
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Thu, 13 Jun 2013 09:28:30 +0800
- Subject: [PATCH 2/6] Emit error in tdump command when traceframe is not selected.
- References: <1370610493-26468-1-git-send-email-yao at codesourcery dot com> <1371086914-8398-1-git-send-email-yao at codesourcery dot com>
gdb:
2013-06-13 Pedro Alves <pedro@codesourcery.com>
Yao Qi <yao@codesourcery.com>
* tracepoint.c (trace_dump_command): GDB emits an error instead
of a warning when the traceframe is not selected.
---
gdb/tracepoint.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 9646090..05f51ea 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);
--
1.7.7.6