Interface Debugging.Observer

Enclosing interface:
Debugging

public static interface Debugging.Observer
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Receives an authorized graph contribution, never a rich step capture or an ordered event log.
    boolean
    afterStep(boolean completed, Optional<DecodedInstruction> instruction, OptionalInt nextAddress, Optional<StepView> capture)
    True requests an intentional stop after this truthful semantic step.
    boolean
    True requests an intentional stop before guest effects.
    default boolean
    Whether instruction-only execution may report truthful block facts instead of individual step callbacks.
    default void
    failed(String message)
    Reports isolated instrumentation failures; never requests a CPU stop.
  • Method Details

    • beforeStep

      boolean beforeStep()
      True requests an intentional stop before guest effects.
    • afterStep

      boolean afterStep(boolean completed, Optional<DecodedInstruction> instruction, OptionalInt nextAddress, Optional<StepView> capture)
      True requests an intentional stop after this truthful semantic step. Instruction facts come from before execution; nextAddress is the actual resulting PC. Failed steps and interrupt-only boundaries must not invent decoded instructions or transitions.
    • canBatchInstructions

      default boolean canBatchInstructions()
      Whether instruction-only execution may report truthful block facts instead of individual step callbacks. Opt-in requires implementing afterBlock(ExecutedBlock) and retaining any stop policy at boundaries. Access tracking and full presentation capture always retain individual steps.
    • afterBlock

      default void afterBlock(ExecutedBlock block)
      Receives an authorized graph contribution, never a rich step capture or an ordered event log. Previously reported, unchanged facts may be omitted. New observers must receive all facts they need; every contribution includes the actual final instruction and its resulting PC transition.
    • failed

      default void failed(String message)
      Reports isolated instrumentation failures; never requests a CPU stop.