summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-03-30 20:26:31 +0100
committerDavid Mitchell <davem@iabyn.com>2010-03-30 21:06:36 +0100
commit1c98cc53150c48606faf09909b3bb3a4ebdd329f (patch)
tree61a7c5d5e57657ba657498447c571ca10e7ebcc4 /scope.c
parent099be4f1d597471eb719c9a344b7c1b55e11ba24 (diff)
downloadperl-1c98cc53150c48606faf09909b3bb3a4ebdd329f.tar.gz
improve -Dl debugging output
In particular, distinguish between scope and context stack push/pops, show depth of JUMPENV stack, and show STACKINFO push/pops
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scope.c b/scope.c
index ed4c835de9..414f5b5225 100644
--- a/scope.c
+++ b/scope.c
@@ -694,6 +694,8 @@ Perl_leave_scope(pTHX_ I32 base)
if (base < -1)
Perl_croak(aTHX_ "panic: corrupt saved stack index");
+ DEBUG_l(Perl_deb(aTHX_ "savestack: releasing items %ld -> %ld\n",
+ (long)PL_savestack_ix, (long)base));
while (PL_savestack_ix > base) {
TAINT_NOT;