diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-03-24 15:00:52 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-03-24 15:00:52 +0000 |
commit | 0997322359c7bba03dd0c50d51d80ff7adae1cdf (patch) | |
tree | ebc2f6676d65c09cbb4824d5cb9ef390a8e7a8a8 /gdb/command.c | |
parent | ad15bea9df8294fe18f69b43f0aba5582a44e807 (diff) | |
download | gdb-0997322359c7bba03dd0c50d51d80ff7adae1cdf.zip gdb-0997322359c7bba03dd0c50d51d80ff7adae1cdf.tar.gz gdb-0997322359c7bba03dd0c50d51d80ff7adae1cdf.tar.bz2 |
* 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.
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) { |