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 <kevinb@redhat.com>
help += "NUMBER|#RRGGBB";
break;
case var_string:
- help += "STRING";
+ help += " STRING";
break;
case var_filename:
- help += "FILENAME";
+ help += " FILENAME";
break;
default:
break;
# Basic "info threads" integration tests.
test-info-threads
+
+# There was a bug where the "metasyntactic variable" was glued to the
+# option.
+gdb_test "help maintenance test-options unknown-is-operand" \
+ "-string STRING.*-filename FILENAME.*" \
+ "option help has spaces"