This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[COMMITTED PATCH] completer.c (complete_line): Remove incorrect comment.
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org
- Cc: keiths at redhat dot com
- Date: Thu, 12 Feb 2015 12:23:06 -0800
- Subject: [COMMITTED PATCH] completer.c (complete_line): Remove incorrect comment.
- Authentication-results: sourceware.org; auth=none
Hi.
While looking into PR 17960 (thanks Keith!) I found this comment
which was from an earlier version of a patch and didn't get updated.
Committed.
2015-02-12 Doug Evans <dje@google.com>
* completer.c (complete_line): Remove incorrect comment.
diff --git a/gdb/completer.c b/gdb/completer.c
index bfd2788..add79cc 100644
--- a/gdb/completer.c
+++ b/gdb/completer.c
@@ -860,14 +860,7 @@ throw_max_completions_reached_error (void)
/* Generate completions all at once. Returns a vector of unique strings
allocated with xmalloc. Returns NULL if there are no completions
or if max_completions is 0. If max_completions is non-negative, this will
- return at most max_completions + 1 strings.
-
- If max_completions strings are collected, an extra string is added which
- is a text message to inform the user that the list may be truncated.
- This extra string serves two purposes:
- 1) Inform the user.
- 2) Prevent readline from being able to find a common prefix to advance
- point to, since it's working with an incomplete list.
+ return at most max_completions strings.
TEXT is the caller's idea of the "word" we are looking at.