Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 160277 Details for
Bug 304010
Variable view fails to show details for base class member (next)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
A patch that will fix the problem on the sample file
patch.txt (text/plain), 1.43 KB, created by
Francois Rigault
on 2010-02-26 05:19:24 EST
(
hide
)
Description:
A patch that will fix the problem on the sample file
Filename:
MIME Type:
Creator:
Francois Rigault
Created:
2010-02-26 05:19:24 EST
Size:
1.43 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.cdt.debug.mi.core >Index: cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt/all/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java,v >retrieving revision 1.34.2.1 >diff -u -r1.34.2.1 Variable.java >--- cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java 13 Aug 2009 16:13:48 -0000 1.34.2.1 >+++ cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java 26 Feb 2010 10:17:36 -0000 >@@ -256,12 +256,13 @@ > } else if (cpp && childName.equals(vars[i].getType())) { > // it is a base class (which is returned by GDB as a field) > // (type of a child is the name of a child) >+ String childNameForCast = childName.contains("::") ? "'" + childName + "'" : childName; > if (t instanceof ICDIPointerType) { > // fn -> casting to pointer base class >- fn = "(" + childName + "*)" + fn;//$NON-NLS-1$ //$NON-NLS-2$ >+ fn = "(struct " + childNameForCast + "*)" + fn;//$NON-NLS-1$ //$NON-NLS-2$ > } else { > // fn -> casting to base class >- fn = "(" + childName + ")" + fn;//$NON-NLS-1$ //$NON-NLS-2$ >+ fn = "(struct " + childNameForCast + ")" + fn;//$NON-NLS-1$ //$NON-NLS-2$ > } > } else if (t instanceof ICDIArrayType) { > // For Array gdb varobj only return the index, override here.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 304010
:
160276
|
160277
|
164293