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:
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.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());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue