Code::Blocks Forums

User forums => Embedded development => Topic started by: Kaijun on May 06, 2015, 12:31:14 pm

Title: data structures are not expanded in watch window
Post by: Kaijun on May 06, 2015, 12:31:14 pm
When I debug application in beagleboard with CB 13.12 in linux, I found data structure can not be expanded, it simply indicates address. When I used CB 10.x, it didn't have this problem.
Title: Re: data structures are not expanded in watch window
Post by: oBFusCATed on May 06, 2015, 01:26:16 pm
I'm pretty sure this problem happens for all versions.
And this is limitation of the gdb/cli protocol we're using.

If you want to see the members then right click on the variable and choose the 'dereference blabla' menu option.
Title: Re: data structures are not expanded in watch window
Post by: Kaijun on May 06, 2015, 04:35:03 pm
I found some structures can be expanded.
Title: Re: data structures are not expanded in watch window
Post by: oBFusCATed on May 06, 2015, 04:53:44 pm
If the variable is not a pointer then the expansion will work.
If it is a pointer then you need to dereference it in the watch window manually.