Package ghidra.trace.model.listing
Interface TraceInstructionsView
- All Superinterfaces:
TraceBaseCodeUnitsView<TraceInstruction>,TraceBaseDefinedUnitsView<TraceInstruction>
- All Known Implementing Classes:
DBTraceInstructionsMemoryView,DBTraceInstructionsView
A view of instruction units
This view excludes all data units, defined or undefined
-
Method Summary
Modifier and TypeMethodDescriptiondefault AddressSetViewaddInstructionSet(Lifespan lifespan, InstructionSet instructionSet, boolean overwrite) Create several instructions for the host platformaddInstructionSet(Lifespan lifespan, TracePlatform platform, InstructionSet instructionSet, boolean overwrite) Create several instructionsdefault TraceInstructioncreate(Lifespan lifespan, Address address, InstructionPrototype prototype, ProcessorContextView context, int forcedLengthOverride) Create an instruction for the host platformcreate(Lifespan lifespan, Address address, TracePlatform platform, InstructionPrototype prototype, ProcessorContextView context, int forcedLengthOverride) Create an instructionMethods inherited from interface ghidra.trace.model.listing.TraceBaseCodeUnitsView
containsAddress, coversRange, coversRange, get, get, get, get, get, get, get, getAddressSetView, getAddressSetView, getAfter, getAt, getBefore, getCeiling, getContaining, getContaining, getContaining, getFloor, getForRegister, getForRegister, getIntersecting, getTrace, intersectsRange, intersectsRange, sizeMethods inherited from interface ghidra.trace.model.listing.TraceBaseDefinedUnitsView
clear, clear, clear
-
Method Details
-
create
TraceInstruction create(Lifespan lifespan, Address address, TracePlatform platform, InstructionPrototype prototype, ProcessorContextView context, int forcedLengthOverride) throws CodeUnitInsertionException Create an instruction- Parameters:
lifespan- the lifespan for the instruction unitaddress- the starting address of the instructionplatform- the platformprototype- the instruction prototypecontext- the input disassembly context for the instructionforcedLengthOverride- reduced instruction byte-length (1..7) or 0 to use default length- Returns:
- the new instruction
- Throws:
CodeUnitInsertionException- if the instruction cannot be created
-
create
default TraceInstruction create(Lifespan lifespan, Address address, InstructionPrototype prototype, ProcessorContextView context, int forcedLengthOverride) throws CodeUnitInsertionException Create an instruction for the host platform- Parameters:
lifespan- the lifespan for the instruction unitaddress- the starting address of the instructionprototype- the instruction prototypecontext- the input disassembly context for the instructionforcedLengthOverride- reduced instruction byte-length (1..7) or 0 to use default length- Returns:
- the new instruction
- Throws:
CodeUnitInsertionException- if the instruction cannot be created
-
addInstructionSet
AddressSetView addInstructionSet(Lifespan lifespan, TracePlatform platform, InstructionSet instructionSet, boolean overwrite) Create several instructionsNOTE: This does not throw
CodeUnitInsertionException. Conflicts are instead recorded in theinstructionSet.- Parameters:
lifespan- the lifespan for all instruction unitsplatform- the optional guest platform, null for the hostinstructionSet- the set of instructions to addoverwrite- true to replace conflicting instructions- Returns:
- the (host) address set of instructions actually added
-
addInstructionSet
default AddressSetView addInstructionSet(Lifespan lifespan, InstructionSet instructionSet, boolean overwrite) Create several instructions for the host platformNOTE: This does not throw
CodeUnitInsertionException. Conflicts are instead recorded in theinstructionSet.- Parameters:
lifespan- the lifespan for all instruction unitsinstructionSet- the set of instructions to addoverwrite- true to replace conflicting instructions- Returns:
- the (host) address set of instructions actually added
-