mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
GP-660: Added "Emulate Program" and "Add Emulated Thread" actions for
loading a program into a purely-emulated trace.
This commit is contained in:
parent
3e39cdd5d1
commit
38798da71e
26 changed files with 1069 additions and 169 deletions
|
@ -134,10 +134,15 @@ public class DBTrace extends DBCachedDomainObjectAdapter implements Trace, Trace
|
|||
throws IOException, LanguageNotFoundException {
|
||||
super(new DBHandle(), DBOpenMode.CREATE, TaskMonitor.DUMMY, name, DB_TIME_INTERVAL,
|
||||
DB_BUFFER_SIZE, consumer);
|
||||
|
||||
this.storeFactory = new DBCachedObjectStoreFactory(this);
|
||||
this.baseLanguage = baseCompilerSpec.getLanguage();
|
||||
this.baseCompilerSpec = baseCompilerSpec;
|
||||
this.baseAddressFactory = new ProgramAddressFactory(baseLanguage, baseCompilerSpec);
|
||||
// Need to "downgrade" the compiler spec, so nothing program-specific seeps in
|
||||
// TODO: Should there be a TraceCompilerSpec?
|
||||
this.baseCompilerSpec =
|
||||
baseLanguage.getCompilerSpecByID(baseCompilerSpec.getCompilerSpecID());
|
||||
this.baseAddressFactory =
|
||||
new ProgramAddressFactory(this.baseLanguage, this.baseCompilerSpec);
|
||||
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(this, "Create", false)) {
|
||||
initOptions(DBOpenMode.CREATE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue