summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-11-20 00:39:02 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-11-20 00:39:02 +0000
commitce333219556f6d529f7e259feeb5cc99020a19a7 (patch)
tree2360cad6b95170ea8fdca4ae3d42d1b8e817ab83 /perl.c
parent86989e5ddfebcf92232ac079b053bdae48a24c3d (diff)
downloadperl-ce333219556f6d529f7e259feeb5cc99020a19a7.tar.gz
Create a per-interpeter debug scratchpad container
and use that for the regexec debugging. p4raw-id: //depot/perl@13110
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index a8f6ceb085..552d7646f0 100644
--- a/perl.c
+++ b/perl.c
@@ -273,6 +273,12 @@ perl_construct(pTHXx)
New(31337, PL_reentrant_buffer->tmbuff,1, struct tm);
#endif
+#ifdef DEBUGGING
+ sv_setpvn(PERL_DEBUG_PAD(0), "", 0);
+ sv_setpvn(PERL_DEBUG_PAD(1), "", 0);
+ sv_setpvn(PERL_DEBUG_PAD(2), "", 0);
+#endif
+
/* Note that strtab is a rather special HV. Assumptions are made
about not iterating on it, and not adding tie magic to it.
It is properly deallocated in perl_destruct() */