Package ghidra.trace.util
Enum Class TraceRegisterUtils
- All Implemented Interfaces:
Serializable,Comparable<TraceRegisterUtils>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Method Summary
Modifier and TypeMethodDescriptionstatic ByteBufferbufferForValue(Register register, RegisterValue value) static RegisterValuecombineWithTraceBaseRegisterValue(RegisterValue rv, TracePlatform platform, long snap, TraceMemorySpace regs, boolean requireKnown) static RegisterValuecombineWithTraceParentRegisterValue(Register parent, RegisterValue rv, TracePlatform platform, long snap, TraceMemorySpace regs, boolean requireKnown) static intstatic intcomputeMaskOffset(RegisterValue value) static RegisterValueencodeValueRepresentationHackPointer(Register register, TraceData data, String representation) static RegisterValuefinishBuffer(ByteBuffer buf, Register register) static intgetFrameLevel(Trace trace, AddressSpace space) static AddressRangegetOverlayRange(AddressSpace space, AddressRange range) static AddressSetViewgetOverlaySet(AddressSpace space, AddressSetView set) static AddressRangegetPhysicalRange(AddressRange range) static AddressSetViewConvert a set in an overlay space to the corresponding set in its physical spacestatic AddressSpacegetRegisterAddressSpace(TraceRegisterContainer cont, boolean createIfAbsent) static AddressSpacegetRegisterAddressSpace(TraceStackFrame frame, boolean createIfAbsent) static AddressSpacegetRegisterAddressSpace(TraceThread thread, int frameLevel, boolean createIfAbsent) static TraceRegisterContainerstatic TraceRegisterContainergetRegisterContainer(TraceObject object, int frameLevel) static TraceRegisterContainergetRegisterContainer(TraceThread thread, int frameLevel) static TraceThreadgetThread(Trace trace, AddressSpace space) static booleanisByteBound(Register register) static byte[]padOrTruncate(byte[] arr, int length) static ByteBufferprepareBuffer(Register register) static AddressRangerangeForRegister(Register register) registersIntersecting(Language language, AddressSetView set) static voidrequireByteBound(Register register) static TraceDataseekComponent(TraceData data, AddressRange range) static TraceDataseekComponent(TraceData data, Register reg) static TraceRegisterUtilsReturns the enum constant of this class with the specified name.static TraceRegisterUtils[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
registersIntersecting
-
rangeForRegister
-
getOverlayRange
-
getOverlaySet
-
getPhysicalRange
-
getPhysicalSet
Convert a set in an overlay space to the corresponding set in its physical space- Parameters:
set- a set contained entirely in one space- Returns:
- the physical set
-
padOrTruncate
public static byte[] padOrTruncate(byte[] arr, int length) -
bufferForValue
-
computeMaskOffset
-
computeMaskOffset
-
seekComponent
-
seekComponent
-
encodeValueRepresentationHackPointer
public static RegisterValue encodeValueRepresentationHackPointer(Register register, TraceData data, String representation) throws DataTypeEncodeException - Throws:
DataTypeEncodeException
-
combineWithTraceParentRegisterValue
public static RegisterValue combineWithTraceParentRegisterValue(Register parent, RegisterValue rv, TracePlatform platform, long snap, TraceMemorySpace regs, boolean requireKnown) -
combineWithTraceBaseRegisterValue
public static RegisterValue combineWithTraceBaseRegisterValue(RegisterValue rv, TracePlatform platform, long snap, TraceMemorySpace regs, boolean requireKnown) -
prepareBuffer
-
finishBuffer
-
isByteBound
-
requireByteBound
-
getRegisterContainer
-
getRegisterContainer
-
getRegisterContainer
-
getRegisterAddressSpace
public static AddressSpace getRegisterAddressSpace(TraceRegisterContainer cont, boolean createIfAbsent) -
getRegisterAddressSpace
public static AddressSpace getRegisterAddressSpace(TraceThread thread, int frameLevel, boolean createIfAbsent) -
getRegisterAddressSpace
-
getThread
-
getFrameLevel
-