mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-15 20:25:46 +02:00
2005-05-12 Alain Magloire
Fix PR 94841 * cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java
This commit is contained in:
parent
4de565f8fe
commit
c1d6468eca
2 changed files with 21 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2005-05-12 Alain Magloire
|
||||||
|
Fix PR 94841
|
||||||
|
* cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java
|
||||||
|
|
||||||
2005-04-28 Alain Magloire
|
2005-04-28 Alain Magloire
|
||||||
Added command -gdb-show endian
|
Added command -gdb-show endian
|
||||||
* cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java
|
* cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java
|
||||||
|
|
|
@ -193,6 +193,23 @@ public abstract class Variable extends VariableDescriptor implements ICDIVariabl
|
||||||
} else {
|
} else {
|
||||||
fn = "*(" + fn + ")"; //$NON-NLS-1$ //$NON-NLS-2$
|
fn = "*(" + fn + ")"; //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
}
|
}
|
||||||
|
} else if (t instanceof ICDIReferenceType) {
|
||||||
|
ICDIType subType = ((ICDIReferenceType)t).getComponentType();
|
||||||
|
if (subType instanceof ICDIStructType) {
|
||||||
|
if (isCPPLanguage()) {
|
||||||
|
if (!isFake()
|
||||||
|
|| (isFake() && !(fName.equals("private") || fName.equals("public") || fName.equals("protected")))) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||||
|
childFake = true;
|
||||||
|
childType = t;
|
||||||
|
} else {
|
||||||
|
fn = "(" + fn + ")." + vars[i].getExp(); //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
|
}
|
||||||
|
} else { // If not C++ language
|
||||||
|
fn = "(" + fn + ")." + vars[i].getExp(); //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
fn = "(" + fn + ")"; //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
|
}
|
||||||
} else if (t instanceof ICDIStructType) {
|
} else if (t instanceof ICDIStructType) {
|
||||||
if (isCPPLanguage()) {
|
if (isCPPLanguage()) {
|
||||||
// For C++ in GDB the children of the
|
// For C++ in GDB the children of the
|
||||||
|
|
Loading…
Add table
Reference in a new issue