Permalink
Browse files

Minor tweaks

  • Loading branch information...
1 parent bce5c73 commit 06ff782f4995ff73b2781d244224f64924239cc3 @ileitch committed Oct 17, 2012
Showing with 5 additions and 3 deletions.
  1. +2 −2 lib/hijack/gdb.rb
  2. +3 −1 test/app.rb
View
@@ -5,7 +5,7 @@ class GDB
def initialize(pid)
@pid = pid
@verbose = Hijack.options[:debug]
- @exec_path = File.join(Config::CONFIG['bindir'], Config::CONFIG['RUBY_INSTALL_NAME'] + Config::CONFIG['EXEEXT'])
+ @exec_path = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['RUBY_INSTALL_NAME'] + RbConfig::CONFIG['EXEEXT'])
attach_outside_gc
end
@@ -97,7 +97,7 @@ def ensure_attached_to_ruby_process
end
def backtrace
- @backtrace ||= exec('bt')
+ exec('bt')
end
def continue
View
@@ -2,6 +2,8 @@
require 'rubygems'
require 'sinatra'
+$count = 0
+
get '/' do
- 'You got it'
+ "Hello! #{$count += 1}"
end

0 comments on commit 06ff782

Please sign in to comment.