mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 08:55:25 +02:00
Check for ICDIRegister when creating.
This commit is contained in:
parent
0e5be21fd3
commit
7f590106ed
1 changed files with 6 additions and 1 deletions
|
@ -71,8 +71,13 @@ public class RegisterManager extends SessionObject implements ICDIRegisterManage
|
|||
* @see org.eclipse.cdt.debug.core.cdi.model.ICDITarget#createRegister()
|
||||
*/
|
||||
public ICDIRegister createRegister(ICDIRegisterObject regObject) throws CDIException {
|
||||
RegisterObject regObj = null;
|
||||
if (regObject instanceof RegisterObject) {
|
||||
RegisterObject regObj = (RegisterObject)regObject;
|
||||
regObj = (RegisterObject)regObject;
|
||||
} else if (regObject instanceof Register) {
|
||||
regObj = ((Register)regObject).getRegisterObject();
|
||||
}
|
||||
if (regObj != null) {
|
||||
Register reg = getRegister(regObject);
|
||||
if (reg == null) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue