mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-30 04:15:35 +02:00
Check for register and prepend "$" to name
This commit is contained in:
parent
7d026a2568
commit
ec0c3f13bd
1 changed files with 11 additions and 2 deletions
|
@ -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.ICDIVariableManager;
|
||||||
import org.eclipse.cdt.debug.core.cdi.model.ICDIArgument;
|
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.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.ICDIStackFrame;
|
||||||
import org.eclipse.cdt.debug.core.cdi.model.ICDITarget;
|
import org.eclipse.cdt.debug.core.cdi.model.ICDITarget;
|
||||||
import org.eclipse.cdt.debug.core.cdi.model.ICDIThread;
|
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('(').append(type).append(')');
|
||||||
}
|
}
|
||||||
buffer.append(obj.getName());
|
if (obj instanceof ICDIRegisterObject) {
|
||||||
|
buffer.append("$" + obj.getName());
|
||||||
|
} else {
|
||||||
|
buffer.append(obj.getName());
|
||||||
|
}
|
||||||
buffer.append(')');
|
buffer.append(')');
|
||||||
if (start != 0) {
|
if (start != 0) {
|
||||||
buffer.append('+').append(start);
|
buffer.append('+').append(start);
|
||||||
|
@ -407,7 +412,11 @@ public class VariableManager extends SessionObject implements ICDIVariableManage
|
||||||
buffer.append('(').append(type).append(')');
|
buffer.append('(').append(type).append(')');
|
||||||
}
|
}
|
||||||
buffer.append('(');
|
buffer.append('(');
|
||||||
buffer.append(obj.getName());
|
if (obj instanceof ICDIRegisterObject) {
|
||||||
|
buffer.append("$" + obj.getName());
|
||||||
|
} else {
|
||||||
|
buffer.append(obj.getName());
|
||||||
|
}
|
||||||
buffer.append(')');
|
buffer.append(')');
|
||||||
return new VariableObject(obj, buffer.toString());
|
return new VariableObject(obj, buffer.toString());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue