This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Improve completion of locations
- To: Daniel Berlin <dan at www dot cgsoftware dot com>
- Subject: Re: [RFA] Improve completion of locations
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Date: Sun, 6 May 2001 13:20:56 +0300 (IDT)
- cc: gdb-patches at sources dot redhat dot com
On Sun, 6 May 2001, Daniel Berlin wrote:
> Complete on 'fred:
>
> It'll list every symbol around (Or at least, 3792 of them, i would
> imagine this is every single one, i never checked)
This small patch (to be applied on top of the large one I sent) should
solve this:
--- gdb/completer.c~4 Sun May 6 09:50:42 2001
+++ gdb/completer.c Sun May 6 13:10:30 2001
@@ -215,6 +215,8 @@ location_completer (char *text, char *wo
if (*p == quote_found)
quote_found = 0;
+ else
+ break; /* hit the end of text */
}
#if HAVE_DOS_BASED_FILE_SYSTEM
/* If we have a DOS-style absolute file name at the beginning of