diff options
author | Tom Tromey <tom@tromey.com> | 2018-04-18 15:40:57 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-05-04 15:58:06 -0600 |
commit | 1263a9d5f1c6198cdb4e73bafe86ca451d35684d (patch) | |
tree | ec865758d5817f7babdd1eaef24c3cda4a3aaf5d /gdb/top.c | |
parent | 12973681f5d46a2407a8dc97c3352fa6c9971716 (diff) | |
download | gdb-1263a9d5f1c6198cdb4e73bafe86ca451d35684d.zip gdb-1263a9d5f1c6198cdb4e73bafe86ca451d35684d.tar.gz gdb-1263a9d5f1c6198cdb4e73bafe86ca451d35684d.tar.bz2 |
Make print_command_trace varargs
I noticed some code in execute_control_command_1 that could be
simplified by making print_command_trace a printf-like function. This
patch makes this change.
ChangeLog
2018-05-04 Tom Tromey <tom@tromey.com>
* top.c (execute_command): Update.
* cli/cli-script.h (print_command_lines): Now varargs.
* cli/cli-script.c (print_command_lines): Now varargs.
(execute_control_command_1) <case while_control, case if_control>:
Update.
Diffstat (limited to 'gdb/top.c')
-rw-r--r-- | gdb/top.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -571,7 +571,7 @@ execute_command (const char *p, int from_tty) line = p; /* If trace-commands is set then this will print this command. */ - print_command_trace (p); + print_command_trace ("%s", p); c = lookup_cmd (&cmd, cmdlist, "", 0, 1); p = cmd; |