From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27234 invoked by alias); 29 May 2013 11:39:53 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 27212 invoked by uid 48); 29 May 2013 11:39:52 -0000 From: "pmuldoon at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug cli/15548] New: Limit completions to a pre-defined limit when completions list is very large Date: Wed, 29 May 2013 11:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: cli X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pmuldoon at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-q2/txt/msg00330.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15548 Bug ID: 15548 Summary: Limit completions to a pre-defined limit when completions list is very large Product: gdb Version: unknown Status: NEW Severity: enhancement Priority: P2 Component: cli Assignee: unassigned at sourceware dot org Reporter: pmuldoon at redhat dot com Related: http://sourceware.org/bugzilla/show_bug.cgi?id=9007 When you complete on a symbol with a wide-scope expression (ie bt _), GDB can sometimes take a very long time to compile a list of symbols for completion. This large symbol list is useless anyway, nobody is going to comb through 70,000 symbols to find the right one. In these cases, we should limit the number of symbols iterated to a set limit before we bail out, and declare the symbol expression too broad for completion. This will signal to the user to enter a more tightly defined expression (which they would do, anyway), and not frustrate them with a long wait while GDB grinds through thousands of symbols to provide a completion list that is unusable. -- You are receiving this mail because: You are on the CC list for the bug.