mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Look in CVariable for the stack frame before resorting to the one from the RegisterManager.
This commit is contained in:
parent
e854db5a01
commit
34ff75dab8
1 changed files with 8 additions and 0 deletions
|
@ -27,6 +27,7 @@ import org.eclipse.cdt.debug.core.cdi.model.ICDIVariableDescriptor;
|
|||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIArrayValue;
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIType;
|
||||
import org.eclipse.cdt.debug.core.model.CVariableFormat;
|
||||
import org.eclipse.cdt.debug.core.model.ICStackFrame;
|
||||
import org.eclipse.cdt.debug.core.model.ICType;
|
||||
import org.eclipse.cdt.debug.core.model.ICValue;
|
||||
import org.eclipse.cdt.debug.core.model.IRegisterDescriptor;
|
||||
|
@ -386,6 +387,13 @@ public class CRegister extends CVariable implements IRegister {
|
|||
setDisposed( true );
|
||||
}
|
||||
|
||||
protected ICStackFrame getStackFrame() {
|
||||
ICStackFrame frame = super.getStackFrame();
|
||||
if (frame == null)
|
||||
frame = getCurrentStackFrame();
|
||||
return frame;
|
||||
}
|
||||
|
||||
protected CStackFrame getCurrentStackFrame() {
|
||||
return ((CDebugTarget)getDebugTarget()).getRegisterManager().getCurrentFrame();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue