From d3a0ec7636402bfe2f9c9d97d2a910fbca8db51a Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 24 May 2005 15:24:23 +0000 Subject: * numeric.c (fix_pow): support Fixnum ** Float case directly without coercing. [ruby-talk:142697] [ruby-talk:143054] * ruby.c (require_libraries): caused SEGV when continuation jumped in to the required library code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/debug.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/debug.rb') diff --git a/lib/debug.rb b/lib/debug.rb index cd2025fc13..356a72a11b 100644 --- a/lib/debug.rb +++ b/lib/debug.rb @@ -255,6 +255,12 @@ class Context def debug_command(file, line, id, binding) MUTEX.lock + unless $debugger_restart + callcc{|c| $debugger_restart = c} + at_exit { + $debugger_restart.call + } + end set_last_thread(Thread.current) frame_pos = 0 binding_file = file @@ -524,6 +530,9 @@ class Context when /^\s*p\s+/ stdout.printf "%s\n", debug_eval($', binding).inspect + when /^\s*r(?:estart)?$/ + $debugger_restart.call + when /^\s*h(?:elp)?$/ debug_print_help() -- cgit v1.2.3