mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-10 03:53:21 +02:00
Use the RegisterManager for getRegisters().
This commit is contained in:
parent
0d11ebfa7c
commit
d9ecab58a7
1 changed files with 3 additions and 13 deletions
|
@ -136,19 +136,9 @@ public class StackFrame extends CObject implements ICDIStackFrame {
|
||||||
* @see org.eclipse.cdt.debug.core.cdi.model.ICDIStackFrame#getRegisters(ICDIRegisterObject[])
|
* @see org.eclipse.cdt.debug.core.cdi.model.ICDIStackFrame#getRegisters(ICDIRegisterObject[])
|
||||||
*/
|
*/
|
||||||
public ICDIRegister[] getRegisters(ICDIRegisterObject[] regs) throws CDIException {
|
public ICDIRegister[] getRegisters(ICDIRegisterObject[] regs) throws CDIException {
|
||||||
ICDIRegister[] registers = null;
|
/* FIXME: Remove this call and use CTarget.getRegiters() */
|
||||||
CSession session = getCTarget().getCSession();
|
RegisterManager mgr = getCTarget().getCSession().getRegisterManager();
|
||||||
VariableManager mgr = (VariableManager)session.getVariableManager();
|
return mgr.createRegisters(regs);
|
||||||
MISession mi = session.getMISession();
|
|
||||||
CommandFactory factory = mi.getCommandFactory();
|
|
||||||
registers = new ICDIRegister[regs.length];
|
|
||||||
for (int i = 0; i < registers.length; i++) {
|
|
||||||
registers[i] = mgr.createRegister(this, regs[i].getName());
|
|
||||||
}
|
|
||||||
if (registers == null) {
|
|
||||||
registers = new ICDIRegister[0];
|
|
||||||
}
|
|
||||||
return registers;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue