summaryrefslogtreecommitdiff
path: root/lib/debug.rb
diff options
context:
space:
mode:
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