| Summary: | [expressions] Display as Array fails for non-pointers | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Marc Khouzam <marc.khouzam> | ||||
| Component: | cdt-debug-dsf-gdb | Assignee: | Project Inbox <cdt-debug-dsf-gdb-inbox> | ||||
| Status: | NEW --- | QA Contact: | Jonah Graham <jonah> | ||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | abeerbagul, aegges, pawel.1.piech, shaijupnairp | ||||
| Version: | 7.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Marc Khouzam
CDI first checks whether the selected variable is a pointer type, and disables the action "display as array" on non-pointer types. Can we do the same in DSF? The base interface for a variable in both CDI and DSF is the same, i.e. ICastToArray. In DSF, the method canCastToArray() should return true only if gdb reports that this variable is a pointer type. Have attached a patch to the DsfCastToTypeSupport which provides this functionality. Due to this patch, the action "display as array" is now visible only on pointer type variables (as reported by gdb). Created attachment 205681 [details]
"Display as array" should be visible only for pointer type variables
|