mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* main.c (complete_command): New command, from Rick Sladkey
<jrs@world.std.com>. (symbol_completion_function): Don't declare rl_point and rl_line_buffer; they are now declared in readline.h. (show_commands): Don't declare history_base; it is declared in history.h. * command.c (lookup_cmd): Don't delete trailing whitespace.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user