summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorTim Bunce <Tim.Bunce@pobox.com>2008-11-03 16:01:31 +0000
committerNicholas Clark <nick@ccl4.org>2008-11-04 08:28:29 +0000
commit2d2a15363346b8095658197c866218a0ef8f09f2 (patch)
tree91b20da5c560d80413fd0916fe96f6213001b9d1 /gv.c
parent8df137f6bc39a4f7e17e32eb0bc5f1146d535227 (diff)
downloadperl-2d2a15363346b8095658197c866218a0ef8f09f2.tar.gz
Integrate:
[ 34693] Add a flag PERLDBf_SAVESRC, which enables the saved lines part of PERLDBf_LINE, so that profilers (such as NYTProf) have access to the lines of the eval, without the speed impact of other parts of the debugger infrastructure. PERLDBf_LINE is unchanged. Based largely on a patch by Tim Bunce in <20081028152749.GA12500@timac.local> [ 34705] Subject: Re: @{"_<$filename"} is unreasonably tied to use of DB::DB ($^P & 0x2) Message-ID: <20081103160130.GA45762@timac.local> Date: Mon, 3 Nov 2008 16:01:31 +0000 [ 34706] Subject: Re: @{"_<$filename"} is unreasonably tied to use of DB::DB ($^P & 0x2) From: Tim Bunce <Tim.Bunce@pobox.com> Message-ID: <20081103162537.GB45762@timac.local> Date: Mon, 3 Nov 2008 16:25:37 +0000 p4raw-link: @34706 on //depot/perl: 4c85b59c156c7ad7ba08eb430618e674134ced22 p4raw-link: @34705 on //depot/perl: 65269a95bf2e18461f4efd8a5e0ad5bb7d043a5e p4raw-link: @34693 on //depot/perl: b8fcbefe6253f6cbcf6817158c0e99c8018b2d46 p4raw-id: //depot/maint-5.10/perl@34715 p4raw-integrated: from //depot/perl@34713 'copy in' pod/perlvar.pod (@32904..) lib/perl5db.pl (@34312..) 'merge in' perl.h (@34630..) op.c toke.c (@34698..) p4raw-integrated: from //depot/perl@34705 'merge in' gv.c (@34698..) p4raw-integrated: from //depot/perl@34693 'merge in' pp_ctl.c (@34679..)
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gv.c b/gv.c
index 0869408013..e3504f2c52 100644
--- a/gv.c
+++ b/gv.c
@@ -139,7 +139,7 @@ Perl_gv_fetchfile_flags(pTHX_ const char *const name, const STRLEN namelen,
#else
sv_setpvn(GvSV(gv), name, namelen);
#endif
- if (PERLDB_LINE)
+ if (PERLDB_LINE || PERLDB_SAVESRC)
hv_magic(GvHVn(gv_AVadd(gv)), NULL, PERL_MAGIC_dbfile);
}
if (tmpbuf != smallbuf)