mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-22 20:22:44 +00:00
GP-1288: support for dbgmodel
This commit is contained in:
parent
932813cd87
commit
5453aabfaf
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user