Class JitCodeGenerator.LineNumberer

java.lang.Object
ghidra.pcode.emu.jit.gen.JitCodeGenerator.LineNumberer
Enclosing class:
JitCodeGenerator

public static class JitCodeGenerator.LineNumberer NEW extends Object
For testing and debugging: A means to inject granular line number information

Typically, this is used to assign every bytecode offset (emitted by a certain generator) a line number, so that tools expecting/requiring line numbers will display something useful.

  • Constructor Summary

    Constructors
    Change
    Constructor
    Description
    LineNumberer(org.objectweb.asm.MethodVisitor mv)
    Prepare to number lines on the given method visitor
  • Method Summary

    Change
    Modifier and Type
    Method
    Description
    void
    Increment the line number and add info on the next bytecode index

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LineNumberer

      public LineNumberer(org.objectweb.asm.MethodVisitor mv)
      Prepare to number lines on the given method visitor
      Parameters:
      mv - the method visitor
  • Method Details

    • nextLine

      public void nextLine()
      Increment the line number and add info on the next bytecode index