Permalink
Browse files

Fixes for 1.9.2

  • Loading branch information...
ileitch committed Nov 25, 2010
1 parent 5ee600f commit 545537118e91bb3e2d7116234e51ca9d67157476
Showing with 6 additions and 5 deletions.
  1. +1 −0 lib/hijack/console.rb
  2. +3 −3 lib/hijack/gdb.rb
  3. +1 −1 lib/hijack/helper.rb
  4. +1 −1 lib/hijack/payload.rb
View
@@ -76,6 +76,7 @@ def mirror_process
end
def start_irb
+ ARGV.clear
IRB.conf[:PROMPT_MODE] = :SIMPLE
IRB.conf[:USE_READLINE] = true
IRB.setup(nil)
View
@@ -40,15 +40,15 @@ def attach
ensure_main_thread_not_blocked_by_join
set_breakpoint
continue
- clear_breakpoint
+ delete_breakpoint
end
def set_breakpoint
exec("break rb_call")
end
- def clear_breakpoint
- exec("clear rb_call")
+ def delete_breakpoint
+ exec("delete breakpoints")
end
def ensure_main_thread_not_blocked_by_join
View
@@ -2,7 +2,7 @@ module Hijack
module Helper
class << self
def helpers
- methods.find_all {|meth| meth =~ /^hijack_/}
+ methods.find_all {|meth| meth =~ /^hijack_/}.map { |meth| meth.to_s }
end
def find_helper(statements)
View
@@ -40,7 +40,7 @@ class << io
def self.start(pid)
@remote = DRbObject.new(nil, 'drbunix://tmp/hijack.' + pid + '.sock')
- p @remote if Hijack.debug?
+ puts @remote.inspect if Hijack.debug?
class << $stdout
def write_with_copying(str)

0 comments on commit 5455371

Please sign in to comment.