diff options
author | Yao Qi <yao@codesourcery.com> | 2013-06-26 05:28:01 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2013-06-26 05:28:01 +0000 |
commit | 05796b355f258ee70743e4deb09ea2ad4a3a84ac (patch) | |
tree | 2c751bb7fa9e2079430aebfd5652c2225e7e6c97 | |
parent | cbfa3b61043a240d89f0529b870e2142bdca95d4 (diff) | |
download | gdb-05796b355f258ee70743e4deb09ea2ad4a3a84ac.zip gdb-05796b355f258ee70743e4deb09ea2ad4a3a84ac.tar.gz gdb-05796b355f258ee70743e4deb09ea2ad4a3a84ac.tar.bz2 |
gdb/
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.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/tracepoint.c | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a64706d..00b8cbc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,6 +1,12 @@ 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> + * tracepoint.c (tracepoint_list, stepping_list): Remove. (clear_collection_list): Free fields 'aexpre_list' and 'list' in collection_list. 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); |