GNOME Bugzilla – Bug 530902
Make dereferencing structures more intuitive
Last modified: 2009-05-31 08:55:21 UTC
Please describe the problem: Most debuggers allow for structures to be expanded in a tree-view style fashion, showing their members name and value. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
First of all, which version of nemiver are you using ? Sorry, but in the 0.5.2 version, the local variables inspector at the bottom pane of nemiver already allows you to do that. It shows you the local variables, and when one of those variables is a structure, you can expand it and inspect its members. Are you trying to look at a structure variable or at a pointer to a structure variable ? I am really talking about a structure variable.
I am using version 0.5.2 and am trying to look at a pointer to a structure variable. KDbg for example lets me look at the members of the corresponding structure.
Pointers to structure variable are different from structure variables. So the title of the bug appears to be a little bit misleading to me. For pointer to variables though, you have to dereference them to be able to inspect the content the point to. Just right click on them an hit "dereference variable". The pointed variable appears in the list of variables to dereference. The reason why this has been done this way is due to the complexity involved to get this right. For instance, if you have a variable Foo ***bar; and you woul like to inspect ***bar, the current scheme allows you to do so, by recursively dereferencing the variable ... But I agree that we should make this somewhat more intuitive. I hope this helps.
Fair enough. Marking as an enhancement.
Thank you for you understanding.
This should be fixed in master, Nemiver 0.7. Thanks.