Class LinuxSyscallResolver

java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.LinuxSyscallResolver

public class LinuxSyscallResolver extends Object
Generic Linux syscall number<>name, number<>routineref provider.
  • Method Details

    • getInstance

      public static LinuxSyscallResolver getInstance(ProcessorType procType)
    • isSyscall

      public boolean isSyscall(IInstruction insn)
      Indicate is an IInstruction is a syscall. Only implemented for x86 and ARM families.
      Parameters:
      insn - instruction to test
      Returns:
      true if the instruction is a known syscall, false is the instruction is not a syscall or not managed.
    • getSyscallRegisterId

      public long getSyscallRegisterId(IInstruction insn)
      Retrieve the register ID where the syscall number is stored
      Parameters:
      insn - syscall instruction
      Returns:
    • getName

      public String getName(int syscallNumber)
    • getPrototype

      public IPrototypeItem getPrototype(int syscallNumber, ITypeManager typeman)
    • getRoutine

      public INativeMethodItem getRoutine(int syscallNumber, ITypeManager typeman)