summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-25 14:11:40 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-25 14:11:40 +0000
commit5551293f269cce18e97ea15b715a8349b5b305bb (patch)
tree84ce564fe8c43dc331595e68f4bee6dc82b02e4f /lib
parenta0aed76548a8c31dcf845742c1f1d12499bbef9f (diff)
downloadruby-5551293f269cce18e97ea15b715a8349b5b305bb.tar.gz
ruby-5551293f269cce18e97ea15b715a8349b5b305bb.tar.xz
ruby-5551293f269cce18e97ea15b715a8349b5b305bb.zip
* lib/debug.rb (DEBUGGER__::Context#debug_command): bp filename must
be the basename of it. [ruby-talk:65644] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/debug.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/debug.rb b/lib/debug.rb
index dc48f0de1..74e06e010 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