represents a running process with a few information, and defines methods to get more interaction (#memory, debugger)
# File metasm/os/main.rb, line 20 def initialize(pid=nil) @pid = pid end
# File metasm/os/main.rb, line 28 def inspect '<Process:' + ["pid: #@pid", modules.to_a.map { |m| " #{'%X' % m.addr} #{m.path}" }].join("\n") + '>' end
# File metasm/os/main.rb, line 24 def to_s mod = File.basename(path) rescue nil "#{pid}: ".ljust(6) << (mod || '<unknown>') end