mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-25 05:00:01 +00:00
2000-12-06 Fernando Nasser <fnasser@redhat.com>
* cli/cli-decode.c (lookup_cmd): Change disabled code into comment.
This commit is contained in:
parent
7c4710aef5
commit
c64601c792
@ -1,3 +1,7 @@
|
|||||||
|
2000-12-06 Fernando Nasser <fnasser@redhat.com>
|
||||||
|
|
||||||
|
* cli/cli-decode.c (lookup_cmd): Change disabled code into comment.
|
||||||
|
|
||||||
2000-12-06 Fernando Nasser <fnasser@redhat.com>
|
2000-12-06 Fernando Nasser <fnasser@redhat.com>
|
||||||
|
|
||||||
* cli/cli-decode.c (lookup_cmd): Remove old stale copy of this routine
|
* cli/cli-decode.c (lookup_cmd): Remove old stale copy of this routine
|
||||||
|
@ -914,15 +914,9 @@ lookup_cmd (char **line, struct cmd_list_element *list, char *cmdtype,
|
|||||||
struct cmd_list_element *last_list = 0;
|
struct cmd_list_element *last_list = 0;
|
||||||
struct cmd_list_element *c =
|
struct cmd_list_element *c =
|
||||||
lookup_cmd_1 (line, list, &last_list, ignore_help_classes);
|
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. */
|
/* Note: Do not remove trailing whitespace here because this
|
||||||
while (ptr >= *line && (*ptr == ' ' || *ptr == '\t'))
|
would be wrong for complete_command. Jim Kingdon */
|
||||||
ptr--;
|
|
||||||
*(ptr + 1) = '\0';
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!c)
|
if (!c)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user