From d827275613094d8d7d2b8b0bbe7a75ca4860b956 Mon Sep 17 00:00:00 2001 From: Marcel Ball Date: Wed, 24 Jan 2018 16:02:45 -0400 Subject: [PATCH] Fix an issue where an element of an array or struct changing will visually show the change on the containing array/struct. - Getting the change list from GDB will get changes from members. - Original code was mistakenly using the variable name from the outside object when looking up the handle to apply the changes instead of the variable name in the changelist. --- src/mibase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mibase.ts b/src/mibase.ts index 0b623fd..a961a50 100644 --- a/src/mibase.ts +++ b/src/mibase.ts @@ -342,7 +342,7 @@ export class MI2DebugSession extends DebugSession { const changelist = changes.result("changelist"); changelist.forEach((change) => { const name = MINode.valueOf(change, "name"); - const vId = this.variableHandlesReverse[varObjName]; + const vId = this.variableHandlesReverse[name]; const v = this.variableHandles.get(vId) as any; v.applyChanges(change); });