diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-28 11:45:50 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-28 11:45:50 +0000 |
commit | 2102559f8c15c8b8ba5db2a7d31548555ac0ae48 (patch) | |
tree | 31b4e8301737cfe5b262674746faa081bb905bed | |
parent | 0148d41a13f0ce7ec5a83f93984fe7aaf9c0e2d2 (diff) | |
download | ruby-2102559f8c15c8b8ba5db2a7d31548555ac0ae48.tar.gz |
* lib/debug.rb (var_list): Command 'var *' did not work on 1.9(!).
global_variables, local_variables, and instance_variables returns
Symbols from 1.9 and need to stringify before evaling it.
See #4931.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/debug.rb | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,10 @@ +Tue Jun 28 20:39:29 2011 Hiroshi Nakamura <nahi@ruby-lang.org> + + * lib/debug.rb (var_list): Command 'var *' did not work on 1.9(!). + global_variables, local_variables, and instance_variables returns + Symbols from 1.9 and need to stringify before evaling it. + See #4931. + Tue Jun 28 19:23:01 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> * signal.c: Now, USE_TRAP_SIGMASK depend on HAVE_PTHREAD_SIGMASK. diff --git a/lib/debug.rb b/lib/debug.rb index 4fb9d509e7..e99f69826a 100644 --- a/lib/debug.rb +++ b/lib/debug.rb @@ -147,7 +147,7 @@ class DEBUGGER__ def var_list(ary, binding) ary.sort! for v in ary - stdout.printf " %s => %s\n", v, eval(v, binding).inspect + stdout.printf " %s => %s\n", v, eval(v.to_s, binding).inspect end end |