mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-3122 Added AutoCloseable Transaction API to DBHandle and
UndoableDomainObject. Performed renaming of some internal classes.
This commit is contained in:
parent
b4de95f4f5
commit
1795c35dfc
209 changed files with 1892 additions and 2054 deletions
|
@ -16,6 +16,7 @@
|
|||
import java.io.File;
|
||||
import java.util.Set;
|
||||
|
||||
import db.Transaction;
|
||||
import ghidra.app.script.GhidraScript;
|
||||
import ghidra.app.services.DebuggerModelService;
|
||||
import ghidra.app.services.DebuggerTraceManagerService;
|
||||
|
@ -28,7 +29,6 @@ import ghidra.program.model.lang.*;
|
|||
import ghidra.trace.database.DBTrace;
|
||||
import ghidra.trace.model.Trace;
|
||||
import ghidra.trace.model.time.TraceTimeManager;
|
||||
import ghidra.util.database.UndoableTransaction;
|
||||
|
||||
/**
|
||||
* This script populates a trace database for demonstrations purposes and opens it in the current
|
||||
|
@ -151,7 +151,7 @@ public class PopulateTraceRemote extends GhidraScript {
|
|||
manager = tool.getService(DebuggerTraceManagerService.class);
|
||||
targets = tool.getService(DebuggerModelService.class);
|
||||
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Populate Events")) {
|
||||
try (Transaction tx = trace.openTransaction("Populate Events")) {
|
||||
timeManager = trace.getTimeManager();
|
||||
timeManager.createSnapshot("init");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue