From 6511d20c9d47093acb3b099ff19854e01bbe9af4 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 13 Jan 2025 07:26:10 -0700 Subject: Fix help formatting for string and filename options I happened to notice that "help add-inferior" said: -execFILENAME FILENAME is the file name of the executable to use as the main program. This is missing a space after "-exec". This patch fixes the bug. If ok'd on time I plan to check this in to the gdb-16 branch as well. Approved-by: Kevin Buettner --- gdb/cli/cli-option.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/cli') diff --git a/gdb/cli/cli-option.c b/gdb/cli/cli-option.c index 10a5944..34ac164 100644 --- a/gdb/cli/cli-option.c +++ b/gdb/cli/cli-option.c @@ -832,10 +832,10 @@ append_val_type_str (std::string &help, const option_def &opt, help += "NUMBER|#RRGGBB"; break; case var_string: - help += "STRING"; + help += " STRING"; break; case var_filename: - help += "FILENAME"; + help += " FILENAME"; break; default: break; -- cgit v1.1