1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 00:36:16 +02:00

Bug 113364: Wrong values displaying an array of structures.

Previous fix didn't work for classes with access specifiers.
This commit is contained in:
Mikhail Khodjaiants 2005-11-02 21:28:20 +00:00
parent ecdeab8ddc
commit 588b729fb6
3 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2005-11-02 Mikhail Khodjaiants
Bug 113364: Wrong values displaying an array of structures.
Previous fix didn't work for classes with access specifiers.
* cdi/org/eclipse/cdt/debug/mi/core/cdi/VariableManager.java
* cdi/org/eclipse/cdt/debug/mi/core/cdi/model/VariableDescriptor.java
2005-10-21 Mikhail Khodjaiants
Bug 113364: Wrong values displaying an array of structures.
* cdi/org/eclipse/cdt/debug/mi/core/cdi/VariableManager.java

View file

@ -126,12 +126,12 @@ public class VariableManager extends Manager {
Target target = (Target)v.getTarget();
ICDIStackFrame vstack = v.getStackFrame();
ICDIThread vthread = v.getThread();
String name = v.getFullName();
int position = v.getPosition();
int depth = v.getStackDepth();
Variable[] vars = getVariables(target);
for (int i = 0; i < vars.length; i++) {
if (vars[i].getFullName().equals(name)
if (vars[i].getFullName().equals(v.getFullName())
&& vars[i].getName().equals(v.getName()) // see bug #113364
&& vars[i].getCastingArrayStart() == v.getCastingArrayStart()
&& vars[i].getCastingArrayEnd() == v.getCastingArrayEnd()
&& VariableDescriptor.equalsCasting(vars[i], v)) {

View file

@ -351,6 +351,7 @@ public abstract class VariableDescriptor extends CObject implements ICDIVariable
if (varDesc instanceof VariableDescriptor) {
VariableDescriptor desc = (VariableDescriptor) varDesc;
if (desc.getFullName().equals(getFullName())
&& desc.getName().equals(getName()) // see bug #113364
&& desc.getCastingArrayStart() == getCastingArrayStart()
&& desc.getCastingArrayEnd() == getCastingArrayEnd()
&& equalsCasting(desc, this)) {