From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11513 invoked by alias); 4 Jun 2013 08:53:50 -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 11490 invoked by uid 48); 4 Jun 2013 08:53:50 -0000 From: "pmuldoon at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug cli/15570] New: Change default completer Date: Tue, 04 Jun 2013 08:53: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/msg00355.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15570 Bug ID: 15570 Summary: Change default completer Product: gdb Version: unknown Status: NEW Severity: enhancement Priority: P2 Component: cli Assignee: unassigned at sourceware dot org Reporter: pmuldoon at redhat dot com Possibly related http://sourceware.org/bugzilla/show_bug.cgi?id=7301 The default completer in GDB seems to be the location completer. Even for commands that have no completion utility: IE bt Will invoke the location completer. The location completer is also I suspect the most expensive one in that: 1) It searches all symbols in all blocks for symbols matching 2) In doing the above, it expands all partial symbols (if I remember correctly, partial symbols when expanded are replaced, not reconstructed, so in effect it is the same cost as a full symbol read, load and parse). The summary is actually a bit misleading. Replacing the default completer might not be the best way to proceed as it would require an audit of every single command in GDB to ensure that some commands don't rely on locations completion as default. It might be better to write a null completer (or no completions attached to a command, if GDB allows that) and selectively apply those to the commands that make sense. -- You are receiving this mail because: You are on the CC list for the bug.