Bug 69085

Summary: Arrays in the Expressions view
Product: [Tools] CDT Reporter: Nobody - feel free to take it <nobody>
Component: cdt-debugAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: andrew, cdtdoug
Version: 2.0   
Target Milestone: 2.0.1   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch to org.eclipse.cdt.debug.core
cdtdoug: iplog+
Patch to org.eclipse.cdt.debug.ui cdtdoug: iplog+

Description Nobody - feel free to take it CLA 2004-06-30 17:40:28 EDT
When an array is added to the Expressions view, the top label is shown 
as "<name>=null".
Comment 1 Andrew Lewycky CLA 2004-08-02 19:35:12 EDT
Created attachment 13713 [details]
Patch to org.eclipse.cdt.debug.core

Implement CArrayPartitionValue.getReferenceTypeName().
This will return a string like "int[42]".
Comment 2 Andrew Lewycky CLA 2004-08-02 19:39:59 EDT
Created attachment 13714 [details]
Patch to org.eclipse.cdt.debug.ui

New function CDTDebugModelPresentation.getValueText() that returns an
appropriate string for ICValues, with special handling for
CArrayPartitionValues. getBaseText() calls getValueText() for IValues. (This is
roughly analagous to JDIModelPresentation's implementation.)
Comment 3 Nobody - feel free to take it CLA 2004-08-04 18:05:23 EDT
Thank you. I didn't apply the patches directly because of minor changes, but 
the fixes are basically the same.
Fixed in HEAD and 2.0 branch.