1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 11:55:40 +02:00

Check for register and prepend "$" to name

This commit is contained in:
Alain Magloire 2003-06-19 03:39:01 +00:00
parent 7d026a2568
commit ec0c3f13bd

View file

@ -13,6 +13,7 @@ import org.eclipse.cdt.debug.core.cdi.CDIException;
import org.eclipse.cdt.debug.core.cdi.ICDIVariableManager;
import org.eclipse.cdt.debug.core.cdi.model.ICDIArgument;
import org.eclipse.cdt.debug.core.cdi.model.ICDIArgumentObject;
import org.eclipse.cdt.debug.core.cdi.model.ICDIRegisterObject;
import org.eclipse.cdt.debug.core.cdi.model.ICDIStackFrame;
import org.eclipse.cdt.debug.core.cdi.model.ICDITarget;
import org.eclipse.cdt.debug.core.cdi.model.ICDIThread;
@ -366,7 +367,11 @@ public class VariableManager extends SessionObject implements ICDIVariableManage
}
buffer.append('(').append(type).append(')');
}
buffer.append(obj.getName());
if (obj instanceof ICDIRegisterObject) {
buffer.append("$" + obj.getName());
} else {
buffer.append(obj.getName());
}
buffer.append(')');
if (start != 0) {
buffer.append('+').append(start);
@ -407,7 +412,11 @@ public class VariableManager extends SessionObject implements ICDIVariableManage
buffer.append('(').append(type).append(')');
}
buffer.append('(');
buffer.append(obj.getName());
if (obj instanceof ICDIRegisterObject) {
buffer.append("$" + obj.getName());
} else {
buffer.append(obj.getName());
}
buffer.append(')');
return new VariableObject(obj, buffer.toString());
}