public class

LinuxSyscallResolver

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

Class Overview

Generic Linux syscall number<>name, number<>routineref provider.

Summary

Public Methods
synchronized static LinuxSyscallResolver getInstance(ProcessorType procType)
String getName(int syscallNumber)
IPrototypeItem getPrototype(int syscallNumber, ITypeManager typeman)
INativeMethodItem getRoutine(int syscallNumber, ITypeManager typeman)
long getSyscallRegisterId(IInstruction insn)
Retrieve the register ID where the syscall number is stored
boolean isSyscall(IInstruction insn)
Indicate is an IInstruction is a syscall.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static synchronized LinuxSyscallResolver getInstance (ProcessorType procType)

public String getName (int syscallNumber)

public IPrototypeItem getPrototype (int syscallNumber, ITypeManager typeman)

public INativeMethodItem getRoutine (int syscallNumber, ITypeManager typeman)

public long getSyscallRegisterId (IInstruction insn)

Retrieve the register ID where the syscall number is stored

Parameters
insn syscall instruction

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.