mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
[232573] - [variables] Hanging variables view
This commit is contained in:
parent
35da429086
commit
6f773242c6
1 changed files with 2 additions and 2 deletions
|
@ -383,7 +383,7 @@ public class MIStack extends AbstractDsfService
|
||||||
// Note: this is a short-cut, but it won't work once we implement retrieving
|
// Note: this is a short-cut, but it won't work once we implement retrieving
|
||||||
// partial lists of stack frames.
|
// partial lists of stack frames.
|
||||||
int idx = frameDmc.getLevel();
|
int idx = frameDmc.getLevel();
|
||||||
if (idx == -1) {
|
if (idx == -1 || idx >= getData().getMIFrames().length) {
|
||||||
rm.setStatus(new Status(IStatus.ERROR, MIPlugin.PLUGIN_ID, INVALID_STATE, "Invalid frame " + frameDmc, null)); //$NON-NLS-1$
|
rm.setStatus(new Status(IStatus.ERROR, MIPlugin.PLUGIN_ID, INVALID_STATE, "Invalid frame " + frameDmc, null)); //$NON-NLS-1$
|
||||||
rm.done();
|
rm.done();
|
||||||
return;
|
return;
|
||||||
|
@ -533,7 +533,7 @@ public class MIStack extends AbstractDsfService
|
||||||
|
|
||||||
fRunControl.getCache().execute(
|
fRunControl.getCache().execute(
|
||||||
new MIStackListLocals(frameDmc, true),
|
new MIStackListLocals(frameDmc, true),
|
||||||
new DataRequestMonitor<MIStackListLocalsInfo>(getExecutor(), rm) {
|
new DataRequestMonitor<MIStackListLocalsInfo>(getExecutor(), countingRm) {
|
||||||
@Override
|
@Override
|
||||||
protected void handleSuccess() {
|
protected void handleSuccess() {
|
||||||
localsList.addAll( Arrays.asList(
|
localsList.addAll( Arrays.asList(
|
||||||
|
|
Loading…
Add table
Reference in a new issue