1

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 has no effect. Do you know the reason? Is there any workaround?

Thanks

2 Answers 2

0

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 :-)

1
0

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? :)

2
  • Hi lorenzog. I cannot post code here. I am assuming that the problem is on gdb,g++ or evern compile flags. I am facing the problem after the gdb upgrade.
    – cateof
    Sep 15, 2010 at 13:57
  • Ok then it might be a gdb quirk. Quickest thing to do would be to try an older version and see what happens, then trying getting the latest patches from svn and compile your own. I also recommend reading the description of what changed in gdb lately.. worst case scenario you will end up learning something new.
    – lorenzog
    Sep 15, 2010 at 14:00

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.