diff options
-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 <[email protected]> + + * 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 <[email protected]> * 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 |