Package ghidra.pcode.emu.taint
Class TaintEmulatorFactory
java.lang.Object
ghidra.pcode.emu.taint.TaintEmulatorFactory
- All Implemented Interfaces:
EmulatorFactory,ExtensionPoint
An emulator factory for making the
TaintPcodeEmulator discoverable to the UI
This is the final class to create a full Debugger-integrated emulator. This class is what makes it appear in the menu of possible emulators the user may configure.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidA common place to factor addition of the required handler.PcodeMachine<?> create(PcodeDebuggerAccess access, TraceEmulationIntegration.Writer writer) Create the emulatordelayedWriteTrace(PcodeTraceAccess access) This is conventionally available for testing and for scripts that would like to create a trace-integrated emulator without using the service.getTitle()Get the title, to appear in menus and dialogs
-
Constructor Details
-
TaintEmulatorFactory
public TaintEmulatorFactory()
-
-
Method Details
-
delayedWriteTrace
This is conventionally available for testing and for scripts that would like to create a trace-integrated emulator without using the service.- Parameters:
access- the means of accessing the integrated trace- Returns:
- a writer with callbacks for trace integration
-
addHandlers
A common place to factor addition of the required handler.It is presumed something else has or will add the other handlers, e.g., for the bytes.
- Parameters:
writer- the writer to add handlers to
-
getTitle
Description copied from interface:EmulatorFactoryGet the title, to appear in menus and dialogs- Specified by:
getTitlein interfaceEmulatorFactory- Returns:
- the title
-
create
Description copied from interface:EmulatorFactoryCreate the emulator- Specified by:
createin interfaceEmulatorFactory- Parameters:
access- the trace-and-debugger access shimwriter- the Debugger's emulation callbacks for UI integration- Returns:
- the emulator with callbacks installed
-