From 1263a9d5f1c6198cdb4e73bafe86ca451d35684d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 18 Apr 2018 15:40:57 -0600 Subject: 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 * 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) : Update. --- gdb/top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/top.c') diff --git a/gdb/top.c b/gdb/top.c index d9d4639..07b386d 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -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; -- cgit v1.1