summaryrefslogtreecommitdiff
path: root/lib/debug.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-24 15:24:23 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-24 15:24:23 +0000
commitd3a0ec7636402bfe2f9c9d97d2a910fbca8db51a (patch)
treeff1c75554fe43498d3a3e2a629a3fca0e17cba97 /lib/debug.rb
parent6e027698371e590d56b4ed4067bac26ab07923fc (diff)
* 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
Diffstat (limited to 'lib/debug.rb')
-rw-r--r--lib/debug.rb9
1 files changed, 9 insertions, 0 deletions
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()