Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] Limit tab-completion result when list is large
@ 2014-02-12 11:55 Gary Benson
  2014-02-12 11:56 ` [PATCH 1/2] Add expansion_notify callback to expand_symtabs_matching Gary Benson
  2014-02-12 11:58 ` [PATCH 2/2] Implement completion limiting Gary Benson
  0 siblings, 2 replies; 8+ messages in thread
From: Gary Benson @ 2014-02-12 11:55 UTC (permalink / raw)
  To: gdb-patches

Hi all,

When debugging large programs, pressing the Tab key at the wrong
time causes GDB to lock up while it builds a completion list.  As
an example, with LibreOffice:

 $ gdb /usr/lib64/libreoffice/program/soffice.bin
 (gdb) start
 (gdb) p <Tab>

On my (pretty fast!) machine the user is left hanging for over a
minute while GDB builds a list of the 217667 things the user could
print.  This is PR cli/11920.

PR cli/15548 proposes to abort building the completion list if it
grows too large, the theory being that nobody is going to scroll
through thousands of screens of completions to find the one they
want.  These two patches implement this.  The default limit is 1000
completions, which the user can override with a new set/show var.

Tested on RHEL6.5 x86_64, no regressions.

Thanks,
Gary

-- 
http://gbenson.net/


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-02-12 21:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-12 11:55 [PATCH 0/2] Limit tab-completion result when list is large Gary Benson
2014-02-12 11:56 ` [PATCH 1/2] Add expansion_notify callback to expand_symtabs_matching Gary Benson
2014-02-12 20:10   ` Tom Tromey
2014-02-12 11:58 ` [PATCH 2/2] Implement completion limiting Gary Benson
2014-02-12 16:27   ` Eli Zaretskii
2014-02-12 16:41   ` Pedro Alves
2014-02-12 20:53     ` Gary Benson
2014-02-12 21:41       ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox