2000-12-06 Fernando Nasser <fnasser@redhat.com>
authorFernando Nasser <fnasser@redhat.com>
Wed, 6 Dec 2000 23:27:41 +0000 (23:27 +0000)
committerFernando Nasser <fnasser@redhat.com>
Wed, 6 Dec 2000 23:27:41 +0000 (23:27 +0000)
* cli/cli-decode.c (lookup_cmd): Change disabled code into comment.

gdb/ChangeLog
gdb/cli/cli-decode.c

index 232ce42f2f6c7cdc0ce78dc9a2b1c398f2becade..161938ccdaa7212ceb58d270541cd786b5c88cd7 100644 (file)
@@ -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>
 
        * cli/cli-decode.c (lookup_cmd): Remove old stale copy of this routine
index 661f9e527e7ee92ef28b28a8e3760c9e3fe545e9..9bedba1118034c6f299299c93251715e147380cd 100644 (file)
@@ -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 *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
+
+  /* Note: Do not remove trailing whitespace here because this
+     would be wrong for complete_command.  Jim Kingdon  */
 
   if (!c)
     {
This page took 0.027874 seconds and 4 git commands to generate.