Class PcodeExpression.ValueCapturingPcodeUseropLibrary<T>

java.lang.Object
ghidra.pcode.exec.AnnotatedPcodeUseropLibrary<T>
ghidra.pcode.exec.PcodeExpression.ValueCapturingPcodeUseropLibrary<T>
Type Parameters:
T - no type in particular, except to match the executor
All Implemented Interfaces:
PcodeUseropLibrary<T>
Enclosing class:
PcodeExpression

protected static class PcodeExpression.ValueCapturingPcodeUseropLibrary<T> extends AnnotatedPcodeUseropLibrary<T>
A clever means of capturing the result of the expression.
Implementation Notes:
The compiled source is actually ___result(<expression>); which allows us to capture the value (and size) of arbitrary expressions. Assigning the value to a temp variable instead of a userop does not quite suffice, since it requires a fixed size, which cannot be known ahead of time.
  • Constructor Details

    • ValueCapturingPcodeUseropLibrary

      protected ValueCapturingPcodeUseropLibrary()
  • Method Details

    • ___result

      public void ___result(T result)