Bug 69085 - Arrays in the Expressions view
Summary: Arrays in the Expressions view
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 2.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-30 17:40 EDT by Nobody - feel free to take it CLA
Modified: 2014-01-28 21:43 EST (History)
2 users (show)

See Also:


Attachments
Patch to org.eclipse.cdt.debug.core (1.69 KB, patch)
2004-08-02 19:35 EDT, Andrew Lewycky CLA
cdtdoug: iplog+
Details | Diff
Patch to org.eclipse.cdt.debug.ui (1.74 KB, patch)
2004-08-02 19:39 EDT, Andrew Lewycky CLA
cdtdoug: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.