aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debug.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-30 16:08:03 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-30 16:08:03 +0000
commit979f006b9e63cc787551d98b9bea9e94d61744de (patch)
tree8f8629ea50ad01c553bf56231af0b1f8a5d17287 /lib/debug.rb
parent045eb9773e37dbe31c5ff595d380beb71ac62863 (diff)
downloadruby-979f006b9e63cc787551d98b9bea9e94d61744de.tar.gz
* io.c (rb_f_syscall): type dispatch should be based on
rb_check_string_type(), not FIXNUM_P(), because values may be a bignum. [ruby-talk:72257] * eval.c (rb_call0): should pass the current klass value to block_invoke, which may be called via "super". [ruby-core:01077] * eval.c (block_invoke): now takes 4th argument "klass". * eval.c (block_alloc): should propagate BLOCK_PROC to ruby_block. * marshal.c (r_object0): should not use "yield" method, use "call" instead. (ruby-bugs-ja PR#476) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/debug.rb')
-rw-r--r--lib/debug.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/debug.rb b/lib/debug.rb
index 1b558ab90f..0caeecb00c 100644
--- a/lib/debug.rb
+++ b/lib/debug.rb
@@ -781,8 +781,8 @@ class << DEBUGGER__
saved_crit = Thread.critical
Thread.critical = true
make_thread_list
- for th in @thread_list
- context(th[0]).set_trace arg
+ for th, in @thread_list
+ context(th).set_trace arg
end
Thread.critical = saved_crit
arg
@@ -796,9 +796,9 @@ class << DEBUGGER__
saved_crit = Thread.critical
Thread.critical = true
make_thread_list
- for th in @thread_list
- next if th[0] == Thread.current
- context(th[0]).set_suspend
+ for th, in @thread_list
+ next if th == Thread.current
+ context(th).set_suspend
end
Thread.critical = saved_crit
# Schedule other threads to suspend as soon as possible.
@@ -809,9 +809,9 @@ class << DEBUGGER__
saved_crit = Thread.critical
Thread.critical = true
make_thread_list
- for th in @thread_list
- next if th[0] == Thread.current
- context(th[0]).clear_suspend
+ for th, in @thread_list
+ next if th == Thread.current
+ context(th).clear_suspend
end
waiting.each do |th|
th.run