Bug 11048

Summary: [RFA] New variable max-completion-results
Product: gdb Reporter: Daniel Clemente <dcl441-bugs>
Component: gdbAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED DUPLICATE    
Severity: normal CC: gdb-prs, xdje42
Priority: P2    
Version: unknown   
Target Milestone: 7.1   
Host: Target:
Build: Last reconfirmed:
Attachments: Updated patch by Klee Dienes

Description Daniel Clemente 2009-12-03 10:47:38 UTC
This comes from an old message to the mailing list:
http://osdir.com/ml/gdb.patches/2002-11/msg00043.html

------------------------------
The following patch adds a new user-visible variable to GDB,
'max-completion-results'.

It is used by the completion functions in symtab.c to limit the maximum number
of results returned by the completion function, and defaults to 'unlimited'. I
find it particuarly useful when using GDB under emacs, to prevent situations
where hitting <tab> at the wrong time can lead to hundreds of thousands of
results having to be sorted by complete_command. 
------------------------------

Patch by Klee Dienes. Klee sent me in November 2008 an updated version of the
patch, which I will attach here. Some more adaptation may be needed.
Comment 1 Daniel Clemente 2009-12-03 10:48:51 UTC
Created attachment 4442 [details]
Updated patch by Klee Dienes
Comment 2 Doug Evans 2015-03-28 22:06:03 UTC
Fixed with patch to 15548.

*** This bug has been marked as a duplicate of bug 15548 ***