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

Changed regexp for 'break' command.

Compare only basename of the target source file to check breakpoint.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nahi 2002-03-30 13:35:47 +00:00
parent d962fc8a80
commit 437f09b401

View file

@ -297,12 +297,9 @@ class DEBUGGER__
stdout.print "Trace off.\n" stdout.print "Trace off.\n"
end end
when /^\s*b(?:reak)?\s+((?:.*?+:)?.+)$/ when /^\s*b(?:reak)?\s+(?:(.+):)?(.+)$/
pos = $1 pos = $2
if pos.index(":") file = File.basename($1 || file)
file, pos = pos.split(":")
end
file = File.basename(file)
if pos =~ /^\d+$/ if pos =~ /^\d+$/
pname = pos pname = pos
pos = pos.to_i pos = pos.to_i