aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorFernando Nasser <fnasser@redhat.com>2000-12-06 23:27:41 +0000
committerFernando Nasser <fnasser@redhat.com>2000-12-06 23:27:41 +0000
commitc64601c792db4cd9e668ad8d08ed1449d4e94ab6 (patch)
tree866cfc4b99f3706af1279cf701703e7a87138146 /gdb
parent7c4710aef56e5ba6871b9c0a43877f8b2747b732 (diff)
downloadgdb-c64601c792db4cd9e668ad8d08ed1449d4e94ab6.zip
gdb-c64601c792db4cd9e668ad8d08ed1449d4e94ab6.tar.gz
gdb-c64601c792db4cd9e668ad8d08ed1449d4e94ab6.tar.bz2
2000-12-06 Fernando Nasser <fnasser@redhat.com>
* cli/cli-decode.c (lookup_cmd): Change disabled code into comment.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/cli/cli-decode.c12
2 files changed, 7 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 232ce42..161938c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
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
which was not being used for quite some time.
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c
index 661f9e5..9bedba1 100644
--- a/gdb/cli/cli-decode.c
+++ b/gdb/cli/cli-decode.c
@@ -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)
{