Package ghidra.app.emulator
Class MemoryAccessFilter
java.lang.Object
ghidra.app.emulator.MemoryAccessFilter
A means of intercepting and/or modifying the emulator's memory access.
Several of these filters may be chained together, each being invoked in the reverse of the order added. In this way, the first added gets the "final say," but it also is farthest from the original request.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Dispose this filter which will cause it to be removed from the memory state.boolean
protected abstract void
processRead
(AddressSpace spc, long off, int size, byte[] values) Invoked after a readprotected abstract void
processWrite
(AddressSpace spc, long off, int size, byte[] values) Invoked after a writevoid
setFilterOnExecutionOnly
(boolean filterOnExecutionOnly)
-
Field Details
-
emu
-
-
Constructor Details
-
MemoryAccessFilter
public MemoryAccessFilter()
-
-
Method Details
-
processRead
Invoked after a read- Parameters:
spc
- the space read fromoff
- the offset within the spacesize
- the number of bytes readvalues
- the bytes read
-
processWrite
Invoked after a write- Parameters:
spc
- the space written tooff
- the offset within the spacesize
- the number of bytes writtenvalues
- the bytes written
-
dispose
public void dispose()Dispose this filter which will cause it to be removed from the memory state.If overriden, be sure to invoke
super.dispose()
. -
filterOnExecutionOnly
public boolean filterOnExecutionOnly() -
setFilterOnExecutionOnly
public void setFilterOnExecutionOnly(boolean filterOnExecutionOnly)
-