summaryrefslogtreecommitdiff
path: root/ext/Devel/DProf/DProf.xs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/Devel/DProf/DProf.xs')
-rw-r--r--ext/Devel/DProf/DProf.xs5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/Devel/DProf/DProf.xs b/ext/Devel/DProf/DProf.xs
index c5c7bd1c61..e8898cb97b 100644
--- a/ext/Devel/DProf/DProf.xs
+++ b/ext/Devel/DProf/DProf.xs
@@ -106,7 +106,6 @@ dprof_times(struct tms *t)
XS(XS_Devel__DProf_END); /* used by prof_mark() */
-static SV * Sub; /* pointer to $DB::sub */
static PerlIO *fp; /* pointer to tmon.out file */
/* Added -JH */
@@ -259,6 +258,7 @@ prof_mark( opcode ptype )
STRLEN len;
SV *sv;
U32 id;
+ SV *Sub = GvSV(DBsub); /* name of current sub */
if( SAVE_STACK ){
if( profstack_ix + 5 > profstack_max ){
@@ -564,6 +564,7 @@ XS(XS_DB_sub)
dXSARGS;
dORIGMARK;
HV *oldstash = curstash;
+ SV *Sub = GvSV(DBsub); /* name of current sub */
SP -= items;
@@ -617,6 +618,7 @@ XS(XS_DB_goto)
dORIGMARK;
HV *oldstash = curstash;
+ SV *Sub = GvSV(DBsub); /* name of current sub */
/* SP -= items; added by xsubpp */
DBG_SUB_NOTIFY( "XS DBsub(%s)\n", SvPV(Sub, na) );
@@ -674,7 +676,6 @@ BOOT:
dowarn = warn_tmp;
}
- Sub = GvSV(DBsub); /* name of current sub */
sv_setiv( DBsingle, 0 ); /* disable DB single-stepping */
{