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:
parent
d962fc8a80
commit
437f09b401
1 changed files with 3 additions and 6 deletions
|
@ -297,12 +297,9 @@ class DEBUGGER__
|
|||
stdout.print "Trace off.\n"
|
||||
end
|
||||
|
||||
when /^\s*b(?:reak)?\s+((?:.*?+:)?.+)$/
|
||||
pos = $1
|
||||
if pos.index(":")
|
||||
file, pos = pos.split(":")
|
||||
end
|
||||
file = File.basename(file)
|
||||
when /^\s*b(?:reak)?\s+(?:(.+):)?(.+)$/
|
||||
pos = $2
|
||||
file = File.basename($1 || file)
|
||||
if pos =~ /^\d+$/
|
||||
pname = pos
|
||||
pos = pos.to_i
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue