Virtual Method

GumStalkerTransformertransform_block

Declaration [src]

void
transform_block (
  GumStalkerTransformer* self,
  GumStalkerIterator* iterator,
  GumStalkerOutput* output
)

Description [src]

Transforms a single basic block, reading its instructions from iterator and emitting the recompiled form into output. Stalker calls this for each block; a GumStalkerTransformer implementation overrides it to inspect and rewrite the code, typically driving iterator with gum_stalker_iterator_next() and gum_stalker_iterator_keep().

Parameters

iterator

Type: GumStalkerIterator

Iterator over the instructions of the block being recompiled.

The data is owned by the caller of the method.
output

Type: GumStalkerOutput

Where the recompiled instructions are written.

The data is owned by the caller of the method.