diff options
Diffstat (limited to 'gdb/command.c')
-rw-r--r-- | gdb/command.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/command.c b/gdb/command.c index 2cf2813..d82f1fd 100644 --- a/gdb/command.c +++ b/gdb/command.c @@ -684,12 +684,15 @@ lookup_cmd (line, list, cmdtype, allow_unknown, ignore_help_classes) struct cmd_list_element *last_list = 0; struct cmd_list_element *c = lookup_cmd_1 (line, list, &last_list, ignore_help_classes); +#if 0 + /* This is wrong for complete_command. */ char *ptr = (*line) + strlen (*line) - 1; /* Clear off trailing whitespace. */ while (ptr >= *line && (*ptr == ' ' || *ptr == '\t')) ptr--; *(ptr + 1) = '\0'; +#endif if (!c) { |