mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 06:32:10 +02:00
- sometime gdb sends "empty" child name for anonymous unions for example, in this case expressions like foo..bar can be created, now will create foo instead of foo. in case of union
This commit is contained in:
parent
333f92bbe5
commit
0ecc8782a4
1 changed files with 3 additions and 1 deletions
|
@ -280,8 +280,10 @@ public abstract class Variable extends VariableDescriptor implements ICDIVariabl
|
|||
fn = "*(" + fn + ")"; //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
} else if (t instanceof ICDIStructType || t instanceof IncompleteType) {
|
||||
if (childName.length()>0) {
|
||||
fn = "(" + fn + ")." + childName; //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
}
|
||||
Variable v = createVariable((Target)getTarget(), (Thread)getThread(), (StackFrame)getStackFrame(),
|
||||
childName, fn, getPosition(), getStackDepth(), vars[i]);
|
||||
if (childFake) {
|
||||
|
|
Loading…
Add table
Reference in a new issue