summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--lib/debug.rb2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0d9fedaa69..a69c8d71a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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