diff options
author | Chris Nandor <pudge@pobox.com> | 2002-03-04 12:48:12 -0500 |
---|---|---|
committer | Abhijit Menon-Sen <ams@wiw.org> | 2002-03-11 03:02:47 +0000 |
commit | aa057b67fd1a188e25f81780a894bf7db377546c (patch) | |
tree | c952b8f70da6e259a5779d37672fd9807af70dbd /lib/perl5db.pl | |
parent | 375122d71fe65bb12f4aac78313fa2d23fd511f3 (diff) | |
download | perl-aa057b67fd1a188e25f81780a894bf7db377546c.tar.gz |
debugger filenames for Mac OS - db.patch (1/1)
Message-Id: <pudge-3FDB8F.17481204032002@onion.valueclick.com>
p4raw-id: //depot/perl@15150
Diffstat (limited to 'lib/perl5db.pl')
-rw-r--r-- | lib/perl5db.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/perl5db.pl b/lib/perl5db.pl index 3365691a7e..711755eed9 100644 --- a/lib/perl5db.pl +++ b/lib/perl5db.pl @@ -667,6 +667,14 @@ sub DB { $usercontext = '($@, $!, $^E, $,, $/, $\, $^W) = @saved;' . "package $package;"; # this won't let them modify, alas local(*dbline) = $main::{'_<' . $filename}; + + # we need to check for pseudofiles on Mac OS (these are files + # not attached to a filename, but instead stored in Dev:Pseudo) + if ($^O eq 'MacOS' && $#dbline < 0) { + $filename_ini = $filename = 'Dev:Pseudo'; + *dbline = $main::{'_<' . $filename}; + } + $max = $#dbline; if ($dbline{$line} && (($stop,$action) = split(/\0/,$dbline{$line}))) { if ($stop eq '1') { |