If I accidentally launch tab completion when debugging large binary, gdb will freeze for some time scanning symbol table (up to 1 minute in my case). So I have to wait until whole symbol table is scanned. Is there any way to interrupt this process in gdb?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
There are still open bugs on tab completion in gdb Bugzilla:
- Bug 11920 - tab completion might stall cli without any feedback
- Bug 15548 - Limit completions to a pre-defined limit when completions list is very large
Edit: gdb 7.10.0 has a max-completions
variable with a default of 200.
回答2:
Control c should interrupt it. Have you tried that?
If it doesn't work, you may need a more recent version of gdb.