GP-1288: support for dbgmodel

This commit is contained in:
d-millar 2021-09-23 17:49:41 +00:00
parent 932813cd87
commit 5453aabfaf
2 changed files with 23 additions and 2 deletions

View File

@ -48,8 +48,8 @@ public class DbgModelTargetDebugContainerImpl extends DbgModelTargetObjectImpl
implements DbgModelTargetDebugContainer {
protected final DbgModelTargetBreakpointContainerImpl breakpoints;
protected final DbgModelTargetEventContainerImpl events;
protected final DbgModelTargetExceptionContainerImpl exceptions;
protected DbgModelTargetEventContainerImpl events;
protected DbgModelTargetExceptionContainerImpl exceptions;
private DbgModelTargetProcess process;

View File

@ -319,6 +319,27 @@ public class DbgModel2TargetObjectImpl extends DefaultTargetObject<TargetObject,
DbgModelTargetTTD ttd = (DbgModelTargetTTD) proxy;
return ttd.init(attrs);
}
if (proxy instanceof DbgModelTargetDebugContainer) {
DbgModelTargetEventContainer events;
if (attributes.containsKey("Events")) {
events = (DbgModelTargetEventContainer) attributes.get("Events");
}
else {
events =
new DbgModelTargetEventContainerImpl((DbgModelTargetDebugContainer) proxy);
}
attrs.put(events.getName(), events);
DbgModelTargetExceptionContainer exceptions;
if (attributes.containsKey("Exceptions")) {
exceptions = (DbgModelTargetExceptionContainer) attributes.get("Exceptions");
}
else {
exceptions =
new DbgModelTargetExceptionContainerImpl(
(DbgModelTargetDebugContainer) proxy);
}
attrs.put(exceptions.getName(), exceptions);
}
}
return CompletableFuture.completedFuture(null);