Community
Participate
Working Groups
} 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.