Skip to content

Commit d827275

Browse files
committed
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.
1 parent cdee9d6 commit d827275

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mibase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ export class MI2DebugSession extends DebugSession {
342342
const changelist = changes.result("changelist");
343343
changelist.forEach((change) => {
344344
const name = MINode.valueOf(change, "name");
345-
const vId = this.variableHandlesReverse[varObjName];
345+
const vId = this.variableHandlesReverse[name];
346346
const v = this.variableHandles.get(vId) as any;
347347
v.applyChanges(change);
348348
});

0 commit comments

Comments
 (0)