diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-25 14:11:40 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-25 14:11:40 +0000 |
commit | ecc5c37818a0172152ffdd46e30db8830f4b83b6 (patch) | |
tree | 84ce564fe8c43dc331595e68f4bee6dc82b02e4f | |
parent | 8d5ad9c1b30aac5db1230aa0c84c2634faa88891 (diff) | |
download | ruby-ecc5c37818a0172152ffdd46e30db8830f4b83b6.tar.gz |
* lib/debug.rb (DEBUGGER__::Context#debug_command): bp filename must
be the basename of it. [ruby-talk:65644]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/debug.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Tue Feb 25 23:03:08 2003 NAKAMURA Hiroshi <nahi@ruby-lang.org> + + * lib/debug.rb (DEBUGGER__::Context#debug_command): bp filename must + be the basename of it. [ruby-talk:65644] + Sun Feb 23 17:57:06 2003 WATANABE Hirofumi <eban@ruby-lang.org> * lib/fileutils (fu_stream_blksize): wrong logial condition. diff --git a/lib/debug.rb b/lib/debug.rb index dc48f0de1c..74e06e010c 100644 --- a/lib/debug.rb +++ b/lib/debug.rb @@ -299,7 +299,7 @@ class Context when /^\s*b(?:reak)?\s+(?:(.+):)?(.+)$/ pos = $2 - file = File.basename($1) if $1 + file = File.basename($1 || file) if pos =~ /^\d+$/ pname = pos pos = pos.to_i |