GP-660: Added "Emulate Program" and "Add Emulated Thread" actions for

loading a program into a purely-emulated trace.
This commit is contained in:
Dan 2021-07-22 13:36:21 -04:00 committed by Ryan Kurtz
parent 3e39cdd5d1
commit 38798da71e
26 changed files with 1069 additions and 169 deletions

View file

@ -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);