This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: [PATCH] Find the last of the missing pad variables
authorBenjamin Sugars <bsugars@canoe.ca>
Tue, 8 May 2001 09:14:30 +0000 (05:14 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Tue, 8 May 2001 12:41:53 +0000 (12:41 +0000)
Message-ID: <Pine.LNX.4.21.0105080912370.1930-100000@marmot.rim.canoe.ca>

p4raw-id: //depot/perl@10033

run.c

diff --git a/run.c b/run.c
index 054abfe..702a9b9 100644 (file)
--- a/run.c
+++ b/run.c
@@ -114,9 +114,10 @@ S_deb_curcv(I32 ix)
     PERL_CONTEXT *cx = &cxstack[ix];
     if (CxTYPE(cx) == CXt_SUB || CxTYPE(cx) == CXt_FORMAT)
         return cx->blk_sub.cv;
-    else if (CxTYPE(cx) == CXt_EVAL && PL_compcv)
-        /* XXX Should be PL_compcv? */
-        return Nullcv;
+    else if (CxTYPE(cx) == CXt_EVAL && CxREALEVAL(cx))
+        return PL_compcv;
+    else if (CxTYPE(cx) == CXt_EVAL && !CxTRYBLOCK(cx))
+        return PL_compcv;
     else if (ix == 0 && PL_curstackinfo->si_type == PERLSI_MAIN)
         return PL_main_cv;
     else if (ix <= 0)