User forums > Help
kernel freezes when watcing some variables
oBFusCATed:
You can try to run this in a command line gdb. But I guess this is an infinite recursion, be cause gdb tries to print the static objects, too.
For me it works fine, probably you need newer gdb.
You can try this gdb command: set print static-members off
Stauricus:
yeah, it really looks like an infinite recursion :( does that mean i'm not able to watch static members then?
well, maybe it is temporary...
my GDB is version 9.2-1, I think that there isn't a newer one.
adding
--- Code: ---set print static-members off
--- End code ---
to 'Debugger initialization commands' in Settings->Debugger->GDB/CDG debugger->Default did the trick. thanks for the help.
oBFusCATed:
gdb 9.2 on gentoo, works just fine with your example.
This is how the gdb output looks like:
--- Code: ---{static Black = {static Black = <same as static member of an already seen type>, static ...
--- End code ---
Navigation
[0] Message Index
[*] Previous page
Go to full version