1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

2000-02-29

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2000-02-29 08:05:32 +00:00
parent 0c123a83f0
commit 4890f3a684
20 changed files with 243 additions and 136 deletions

View file

@ -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