This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Limit qualified completions
- From: Daniel Jacobowitz <drow at false dot org>
- To: Keith Seitz <keiths at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 18 Aug 2009 22:44:03 -0400
- Subject: Re: [RFA] Limit qualified completions
- References: <4A8B3BB9.2070105@redhat.com>
On Tue, Aug 18, 2009 at 04:39:37PM -0700, Keith Seitz wrote:
> Hi,
>
> If the user attempts to complete symbols in a class or namespace,
> i.e., "complete break foo::", default_make_symbol_completion_list
> will return every single known global symbol in the executable.
>
> This simplistic patch (and test case) "fixes" the problem, limiting
> the matches to the appropriate symbols.
>
> Ok?
It seems to me like there must be a bigger problem with the character
list; what if foo is a template?
--
Daniel Jacobowitz
CodeSourcery