This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug cli/15548] New: Limit completions to a pre-defined limit when completions list is very large


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 _<tab>), 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]