mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
[236843] - [variables] Hanging variables view (2)
This commit is contained in:
parent
17b9861f5a
commit
e775c4839a
3 changed files with 9 additions and 3 deletions
|
@ -491,7 +491,8 @@ abstract public class AbstractVMProvider implements IVMProvider
|
|||
}
|
||||
})
|
||||
);
|
||||
|
||||
} else {
|
||||
super.handleErrorOrWarning();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -194,7 +194,7 @@ public class DefaultVMContentProviderStrategy implements IElementContentProvider
|
|||
}
|
||||
});
|
||||
}
|
||||
} else if (update.isCanceled()) {
|
||||
} else {
|
||||
update.done();
|
||||
}
|
||||
|
||||
|
|
|
@ -481,7 +481,12 @@ public class MIStack extends AbstractDsfService
|
|||
protected void handleSuccess() {
|
||||
|
||||
// Create the data object.
|
||||
rm.setData(new VariableData(getData().getLocals()[miVariableDmc.fIndex]));
|
||||
MIArg[] locals = getData().getLocals();
|
||||
if (locals.length > miVariableDmc.fIndex) {
|
||||
rm.setData(new VariableData(locals[miVariableDmc.fIndex]));
|
||||
} else {
|
||||
rm.setStatus(new Status(IStatus.ERROR, MIPlugin.PLUGIN_ID, INVALID_HANDLE, "Invalid variable " + miVariableDmc, null)); //$NON-NLS-1$
|
||||
}
|
||||
rm.done();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue