Class: Indis::MachO::ARMUnixThreadCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/indis-macho/command.rb

Overview

LC_UNIXTHREAD

Constant Summary collapse

REGISTERS =
[:r0, :r1, :r2, :r3, :r4, :r5, :r6, :r7, :r8, :r9, :r10, :r11, :r12, :sp, :lr, :pc, :cpsr]

Constants inherited from Command

Command::CMD, Command::CMD_CLASS, Command::LC_REQ_DYLD

Instance Attribute Summary collapse

Attributes inherited from Command

#cmd, #length

Instance Method Summary collapse

Methods inherited from Command

class_of_command, #initialize

Constructor Details

This class inherits a constructor from Indis::MachO::Command

Instance Attribute Details

#registersObject (readonly)

Returns the value of attribute registers.



270
271
272
# File 'lib/indis-macho/command.rb', line 270

def registers
  @registers
end

Instance Method Details

#process(payload) ⇒ Object



272
273
274
275
276
277
# File 'lib/indis-macho/command.rb', line 272

def process(payload)
  super(payload)
  # XXX: this one parses only ARM thread state, need to get back to mach-o header to know the flavor
  
  @registers = payload.read(4*17).unpack('V'*17)
end