* 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
This commit is contained in:
nahi 2011-06-28 11:45:50 +00:00
Родитель 0148d41a13
Коммит 2102559f8c
2 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -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.

Просмотреть файл

@ -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