mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-740: Removed TargetObjectRef and cleaned up.
This commit is contained in:
parent
b9f9c69be4
commit
6614b54248
328 changed files with 3177 additions and 4428 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
/* ###
|
||||
* IP: GHIDRA
|
||||
*
|
||||
|
@ -162,13 +161,13 @@ public class PopulateTraceRemote extends GhidraScript {
|
|||
|
||||
Set<DebuggerObjectModel> models = targets.getModels();
|
||||
DebuggerObjectModel model = (DebuggerObjectModel) models.toArray()[0];
|
||||
TargetInterpreter<?> interpreter =
|
||||
DebugModelConventions.findSuitable(TargetInterpreter.tclass, model.createRef()).get();
|
||||
TargetInterpreter interpreter =
|
||||
DebugModelConventions.findSuitable(TargetInterpreter.class, model.getModelRoot()).get();
|
||||
interpreter.execute(".opendump " + f.getAbsolutePath()).get();
|
||||
interpreter.execute("g");
|
||||
TargetAttacher<?> attacher =
|
||||
DebugModelConventions.findSuitable(TargetAttacher.tclass, model.createRef()).get();
|
||||
TargetAttacher attacher =
|
||||
DebugModelConventions.findSuitable(TargetAttacher.class, model.getModelRoot()).get();
|
||||
// TODO: Is "Available" the correct path?
|
||||
attacher.attach(model.createRef("Available", "[0]").as(TargetAttachable.tclass)).get();
|
||||
attacher.attach(model.getModelObject("Available", "[0]").as(TargetAttachable.class)).get();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue