From ecc5c37818a0172152ffdd46e30db8830f4b83b6 Mon Sep 17 00:00:00 2001 From: nahi Date: Tue, 25 Feb 2003 14:11:40 +0000 Subject: * 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 --- lib/debug.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3