This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Fix qtsave filename printing
- From: Luis Machado <luis_gustavo at mentor dot com>
- To: gdb-patches at sourceware dot org, Pedro Alves <pedro at codesourcery dot com>
- Date: Wed, 28 Sep 2011 03:31:20 -0300
- Subject: [PATCH] Fix qtsave filename printing
- Reply-to: luis_gustavo at mentor dot com
Hi,
Another obvious patch that fixes printing of the filename when the user
asks the target to save the trace data on its end.
Luis
2011-09-28 Luis Machado <lgustavo@codesourcery.com>
gdb/
* tracepoint.c (trace_save_command): Use filename instead of
args when printing.
--- .pc/qtsave_file.diff/gdb/tracepoint.c 2011-09-28 03:25:03.971993001 -0300
+++ gdb/tracepoint.c 2011-09-28 03:26:03.887993000 -0300
@@ -2885,7 +2885,7 @@ trace_save_command (char *args, int from
trace_save (filename, target_does_save);
if (from_tty)
- printf_filtered (_("Trace data saved to file '%s'.\n"), args);
+ printf_filtered (_("Trace data saved to file '%s'.\n"), filename);
do_cleanups (back_to);
}