开发者

gdb takes too long and Ctrl-C has no effect

I have major issue with GNU gdb (GDB) SUSE (6.8.50.20090302-1.5.18).

It takes ages to print the value of a nested symbol and hitting Ctrl-C ha开发者_高级运维s no effect. Do you know the reason? Is there any workaround?

Thanks


Try GDB 7.2. There have been many fixes since 6.8, e.g.

2009-07-23  Paul Pluzhnikov  <ppluzhnikov@google.com>

        * symtab.c (search_symbols): Add QUIT.

The fix above should make Control-C work. Other fixes sped up searching for symbols, so you may not have a reason to hit Control-C in the first place :-)


Is it blocking on some network input, i.e. is it a library call waiting for the kernel to answer?

Have you tried debugging it from root? (careful here)

Can you set a watchpoint so that it will break before the culprit line?

Can you paste some code, too? :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜