ruby-changes:4200
From: ko1@a...
Date: Wed, 5 Mar 2008 11:52:59 +0900 (JST)
Subject: [ruby-changes:4200] matz - Ruby:r15690 (trunk): * lib/debug.rb: require 'continuation' to implement "restart"
matz 2008-03-05 11:52:43 +0900 (Wed, 05 Mar 2008) New Revision: 15690 Modified files: trunk/ChangeLog trunk/lib/debug.rb trunk/version.h Log: * lib/debug.rb: require 'continuation' to implement "restart" command. [ruby-dev:33992] * lib/debug.rb (Context::debug_command): remove local variable shadowing to shut up warnings. [ruby-dev:33992] * lib/debug.rb (Context::display_list): ditto. * lib/debug.rb (Context::resume): ditto. * lib/debug.rb (Context::get_thread): no longer use #index for Hash. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/version.h?r1=15690&r2=15689&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15690&r2=15689&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/debug.rb?r1=15690&r2=15689&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 15689) +++ ChangeLog (revision 15690) @@ -1,3 +1,17 @@ +Wed Mar 5 11:50:32 2008 Yukihiro Matsumoto <matz@r...> + + * lib/debug.rb: require 'continuation' to implement "restart" + command. [ruby-dev:33992] + + * lib/debug.rb (Context::debug_command): remove local variable + shadowing to shut up warnings. [ruby-dev:33992] + + * lib/debug.rb (Context::display_list): ditto. + + * lib/debug.rb (Context::resume): ditto. + + * lib/debug.rb (Context::get_thread): no longer use #index for Hash. + Tue Mar 4 21:35:59 2008 Yukihiro Matsumoto <matz@r...> * lib/irb.rb (IRB::Irb::eval_input): SyntaxError should not be Index: lib/debug.rb =================================================================== --- lib/debug.rb (revision 15689) +++ lib/debug.rb (revision 15690) @@ -2,6 +2,8 @@ # Copyright (C) 2000 Information-technology Promotion Agency, Japan # Copyright (C) 2000-2003 NAKAMURA, Hiroshi <nahi@r...> +require 'continuation' + if $SAFE > 0 STDERR.print "-r debug.rb is not available in safe mode\n" exit 1 @@ -295,7 +297,7 @@ if break_points.find{|b| b[1] == 0} n = 1 stdout.print "Breakpoints:\n" - for b in break_points + break_points.each do |b| if b[0] and b[1] == 0 stdout.printf " %d %s:%s\n", n, b[2], b[3] end @@ -591,7 +593,6 @@ def display_list(b, e, file, line) stdout.printf "[%d, %d] in %s\n", b, e, file if lines = SCRIPT_LINES__[file] and lines != true - n = 0 b.upto(e) do |n| if n > 0 && lines[n-1] if n == line @@ -780,7 +781,7 @@ def resume MUTEX.synchronize do make_thread_list - for th, in @thread_list + @thread_list.each do |th,| next if th == Thread.current context(th).clear_suspend end @@ -806,7 +807,7 @@ end def get_thread(num) - th = @thread_list.index(num) + th = @thread_list.key(num) unless th @stdout.print "No thread ##{num}\n" throw :debug_error Index: version.h =================================================================== --- version.h (revision 15689) +++ version.h (revision 15690) @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2008-03-04" +#define RUBY_RELEASE_DATE "2008-03-05" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20080304 +#define RUBY_RELEASE_CODE 20080305 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2008 #define RUBY_RELEASE_MONTH 3 -#define RUBY_RELEASE_DAY 4 +#define RUBY_RELEASE_DAY 5 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/