Bug 11048 - [RFA] New variable max-completion-results
Summary: [RFA] New variable max-completion-results
Status: RESOLVED DUPLICATE of bug 15548
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: unknown
: P2 normal
Target Milestone: 7.1
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-03 10:47 UTC by Daniel Clemente
Modified: 2015-03-28 22:06 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
Updated patch by Klee Dienes (1.38 KB, patch)
2009-12-03 10:48 UTC, Daniel Clemente
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***