class Ptrace::Debugger
A ptrace debugger. Note that this class is not instantiated; it is simply a wrapper for the ptrace system call that performs translation of objects between Ruby and C.
Public Class Methods
Return a Hash mapping command symbols (e.g. :singlestep) to ptrace command numbers. This serves as a list of all ptrace commands supported by the OS.
# File module/rdoc_input/Ptrace_ext.rb, line 43 def self.commands end
# File module/rdoc_input/Ptrace_ext.rb, line 116 def self.event_msg(pid) end
Read the FPU registers for the specified process. This returns a Hash mapping register name to value.
# File module/rdoc_input/Ptrace_ext.rb, line 93 def self.fpregs(pid) end
Write the FPU registers for the specified process. The Hash must be a complete set of registers as returned by Debugger.fpregs
; missing registers will be set to 0.
# File module/rdoc_input/Ptrace_ext.rb, line 101 def self.fpregs=(pid, hash) end
Read a word from memory at the specified address in the specified process. The cms is expected to be one of PT_READ_I, PT_READ_D, or PT_READ_U.
# File module/rdoc_input/Ptrace_ext.rb, line 64 def self.peek(cmd, pid, addr) end
Write a word to memory at the specified address in the specified process. The cms is expected to be one of PT_WRITE_I, PT_WRITE_D, or PT_WRITE_U.
# File module/rdoc_input/Ptrace_ext.rb, line 71 def self.poke(cmd, pid, addr, word) end
Read the general (CPU) registers for the specified process. This returns a Hash mapping register name to value.
# File module/rdoc_input/Ptrace_ext.rb, line 78 def self.regs(pid) end
Write the general (CPU) registers for the specified process. The Hash must be a complete set of registers as returned by Debugger.regs
; missing registers will be set to 0.
# File module/rdoc_input/Ptrace_ext.rb, line 86 def self.regs=(pid, hash) end
Send a ptrace command number to the specified PID. The addr argument can be nil. This is a wrapper for the ptrace system call.
# File module/rdoc_input/Ptrace_ext.rb, line 50 def self.send_cmd(cmd, pid, addr) end
Send a ptrace command number to the specified PID, using addr and data as the address and data arguments. This is a wrapper for the ptrace system call.
# File module/rdoc_input/Ptrace_ext.rb, line 57 def self.send_data(cmd, pid, addr, data) end
# File module/rdoc_input/Ptrace_ext.rb, line 106 def self.signal(pid) end
# File module/rdoc_input/Ptrace_ext.rb, line 111 def self.signal=(pid, hash) end