Author Topic: Debugger freez on watch content of class  (Read 4381 times)

Offline ysern

  • Single posting newcomer
  • *
  • Posts: 3
Debugger freez on watch content of class
« on: August 23, 2013, 11:13:18 pm »
Hello,

the debugger in C::B doesn't not respond after i try to watch the content of any class. These classes can be even not so complicated. For example AxisAlignedBox type from Ogre3D. The problem is all the time reproducible. I tried "set print elements 200", didn't fix that.

The version of C::B is 12.11,
                       gdb: 7.4.1+dfsg-0.1

My system based on AMD x64 CPU

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: Debugger freez on watch content of class
« Reply #1 on: August 25, 2013, 08:47:01 pm »
Do you have a minimal code sample that reproduces the problem?
Does your class have a static member of the same class type?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ysern

  • Single posting newcomer
  • *
  • Posts: 3
Re: Debugger freez on watch content of class
« Reply #2 on: August 25, 2013, 11:55:37 pm »
Hi oBFusCATed, thank you that you try to help me.

In my project i use OgreKit library.

There are a lot of classes that cause the debugger freeze problem. For example this quite simple  one: http://code.google.com/p/gamekit/source/browse/branches/OgreKit/OgreLite/OgreMain/include/OgreAxisAlignedBox.h?r=151. It has static members of the same class type. Is it a problem for debugger?
« Last Edit: August 25, 2013, 11:57:31 pm by ysern »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: Debugger freez on watch content of class
« Reply #3 on: August 26, 2013, 10:06:06 am »
Is it a problem for debugger?
Yes, it is, the debugger enters infinite recursion.
Put this line in the initial commands in the debugger settings and it will work fine.
Code
set print static-members off
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ysern

  • Single posting newcomer
  • *
  • Posts: 3
Re: Debugger freez on watch content of class
« Reply #4 on: August 26, 2013, 11:16:28 am »
Put this line in the initial commands in the debugger settings and it will work fine.
Code
set print static-members off

Now it works. Very thanks oBFusCATed!