1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Bug 420366 - [expressions] ExpressionInfo.inMemory() does not work for

children of array elements

Change-Id: If000fd9bb935f7aaeb686c6a2785052b70df226d
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17788
Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
IP-Clean: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
This commit is contained in:
Marc Khouzam 2013-10-25 20:53:51 -04:00
parent 3d9e51d8ae
commit 012e777293

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2008, 2012 Monta Vista and others.
* Copyright (c) 2008, 2013 Monta Vista and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -2143,9 +2143,12 @@ public class MIVariableManager implements ICommandControl {
localExprInfo.setDynamic(getData()
.isDynamic());
localExprInfo.setParent(null);
localExprInfo.setIndexInParent(-1);
// Do not initialize the parent or indexInParent, since they may
// already be set to something. This will happen for arrays.
// Their default values are ok for other cases i.e., null and -1
// bug 420366
setExpressionData(
localExprInfo,
getData().getType(),