1
0
Fork 0
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:
Ken Ryall 2006-04-28 03:19:38 +00:00
parent e854db5a01
commit 34ff75dab8

View file

@ -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();
}