diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-02-29 08:05:32 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-02-29 08:05:32 +0000 |
| commit | 5928d4c1e01a076c3c992b3a003c167a5d4b7600 (patch) | |
| tree | 3e43148d3114380fff1418aa3ff6d01b157a97e4 /lib/debug.rb | |
| parent | ac9d16f8b62f24b7bb7190888b6bc28cf2e75af9 (diff) | |
| download | ruby-5928d4c1e01a076c3c992b3a003c167a5d4b7600.tar.gz ruby-5928d4c1e01a076c3c992b3a003c167a5d4b7600.tar.xz ruby-5928d4c1e01a076c3c992b3a003c167a5d4b7600.zip | |
2000-02-29
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/debug.rb')
| -rw-r--r-- | lib/debug.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/debug.rb b/lib/debug.rb index 7807ebd4d..4497fd161 100644 --- a/lib/debug.rb +++ b/lib/debug.rb @@ -383,11 +383,12 @@ class DEBUGGER__ binding, binding_file, binding_line = @frames[frame_pos] stdout.printf "#%d %s:%s\n", frame_pos, binding_file, binding_line - when /^\s*fi(?:nish)?$/ - if frame_pos == 0 + when /^\s*fin(?:ish)?$/ + if frame_pos == @frames.size stdout.print "\"finish\" not meaningful in the outermost frame.\n" else @finish_pos = @frames.size - frame_pos + p @finish_pos frame_pos = 0 return end @@ -563,10 +564,10 @@ class DEBUGGER__ @frames.unshift [binding, file, line, id] when 'return', 'end' - @frames.shift if @frames.size == @finish_pos @stop_next = 1 end + @frames.shift when 'end' @frames.shift |
