Author Topic: data structures are not expanded in watch window  (Read 2997 times)

Offline Kaijun

  • Multiple posting newcomer
  • *
  • Posts: 25
data structures are not expanded in watch window
« 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12006
    • Travis build status
Re: data structures are not expanded in watch window
« Reply #1 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.
(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 Kaijun

  • Multiple posting newcomer
  • *
  • Posts: 25
Re: data structures are not expanded in watch window
« Reply #2 on: May 06, 2015, 04:35:03 pm »
I found some structures can be expanded.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12006
    • Travis build status
Re: data structures are not expanded in watch window
« Reply #3 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.
(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!]