mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 18:05:33 +02:00
[263521] [debug view][stack] Retrieving limited number of stack frames does not work reliably with breadcrumb.
Partial fix: Select new frame after expand stack
This commit is contained in:
parent
3740766643
commit
21efa3636b
1 changed files with 17 additions and 1 deletions
|
@ -699,7 +699,23 @@ public class StackFramesVMNode extends AbstractDMVMNode
|
|||
|
||||
private void buildDeltaForExpandStackEvent(IExecutionDMContext execDmc, final VMDelta parentDelta, final RequestMonitor rm) {
|
||||
parentDelta.setFlags(parentDelta.getFlags() | IModelDelta.CONTENT);
|
||||
rm.done();
|
||||
// Retrieve the list of new stack frames, and mark the first frame to be selected.
|
||||
final int offset = getStackFrameLimit(execDmc) / 2;
|
||||
getVMProvider().updateNode(
|
||||
this,
|
||||
new VMChildrenUpdate(
|
||||
parentDelta, getVMProvider().getPresentationContext(), offset, offset,
|
||||
new DataRequestMonitor<List<Object>>(getExecutor(), rm) {
|
||||
@Override
|
||||
public void handleCompleted() {
|
||||
final List<Object> data= getData();
|
||||
if (data != null && data.size() != 0) {
|
||||
parentDelta.addNode(data.get(0), offset, IModelDelta.SELECT);
|
||||
}
|
||||
rm.done();
|
||||
}
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue