mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +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[])
|
||||
*/
|
||||
public ICDIRegister[] getRegisters(ICDIRegisterObject[] regs) throws CDIException {
|
||||
ICDIRegister[] registers = null;
|
||||
CSession session = getCTarget().getCSession();
|
||||
VariableManager mgr = (VariableManager)session.getVariableManager();
|
||||
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;
|
||||
/* FIXME: Remove this call and use CTarget.getRegiters() */
|
||||
RegisterManager mgr = getCTarget().getCSession().getRegisterManager();
|
||||
return mgr.createRegisters(regs);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue