diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-10 03:47:56 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-10 03:47:56 +0000 |
| commit | 64e63100d2bbab9d852d51d4153c16297a668f7d (patch) | |
| tree | c941f926ed5206af1cbef0b8027aca3527f92a61 /lib | |
| parent | 07da58d79846c7018fb7f41c5a7f55cb81589436 (diff) | |
| download | ruby-64e63100d2bbab9d852d51d4153c16297a668f7d.tar.gz ruby-64e63100d2bbab9d852d51d4153c16297a668f7d.tar.xz ruby-64e63100d2bbab9d852d51d4153c16297a668f7d.zip | |
* lib/debug.rb (debug_command): added a deficient format specifier.
fixed: [ruby-core:05419]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/debug.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/debug.rb b/lib/debug.rb index 356a72a11..70e8aea14 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} |
