From 08eae62935b9ec7ef4f41cd00d8a8fc35125e0bd Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 10 Jul 2005 03:47:56 +0000 Subject: * lib/debug.rb (debug_command): added a deficient format specifier. fixed: [ruby-core:05419] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/debug.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/debug.rb b/lib/debug.rb index 356a72a11b..70e8aea148 100644 --- a/lib/debug.rb +++ b/lib/debug.rb @@ -255,7 +255,7 @@ class Context def debug_command(file, line, id, binding) MUTEX.lock - unless $debugger_restart + unless defined?($debugger_restart) and $debugger_restart callcc{|c| $debugger_restart = c} at_exit { $debugger_restart.call @@ -330,7 +330,7 @@ class Context when /^\s*wat(?:ch)?\s+(.+)$/ exp = $1 break_points.push [true, 1, exp] - stdout.printf "Set watchpoint %d\n", break_points.size, exp + stdout.printf "Set watchpoint %d:%s\n", break_points.size, exp when /^\s*b(?:reak)?$/ if break_points.find{|b| b[1] == 0} -- cgit v1.2.3