Reputation: 41
I am running gdb on a very large project C++, something like 500k sloc's, 300k symbols.
Whenever I mistype a TAB, gdb will search for all those symbols, then present the helpful "Display all XX possibilities?" Problem is that the search takes over a 1min, and gets mem usage up to over 4gb (not going down after that).
There must be a way to stop this behaviour in gdb. Can I disable the TAB for symbol resolution/completion? Or limit the number of loaded/searched symbols? Or at least kill that search when it starts? Ctrl+C or anything doesn't work.
I'm using gdb 7.7
Upvotes: 4
Views: 696
Reputation: 213877
Can I disable the TAB for symbol resolution/completion?
You can disable all tab-completion (for all programs using GNU readline, including GDB) by putting this:
set disable-completion on
into ~/.inputrc
. Documentation here.
I don't believe there is a way to disable tab-completion for symbols only.
Upvotes: 3