summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2004-03-28 15:10:48 +0000
committerDave Mitchell <davem@fdisolutions.com>2004-03-28 15:10:48 +0000
commit38c076c778be4d77b58837d5c13b55bd2f5fb50e (patch)
tree29f3f3482ca36dd9caa5096f668bc0dd4c7c18f9 /dump.c
parent4ad16c232af72afff4d7d0d37f532c709df5d9f0 (diff)
downloadperl-38c076c778be4d77b58837d5c13b55bd2f5fb50e.tar.gz
update -Dx to cope with lexical version of OP_AELEMFAST
p4raw-id: //depot/perl@22607
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/dump.c b/dump.c
index b5d7ceb1de..abfddd0e51 100644
--- a/dump.c
+++ b/dump.c
@@ -757,17 +757,19 @@ Perl_do_op_dump(pTHX_ I32 level, PerlIO *file, OP *o)
#ifdef USE_ITHREADS
Perl_dump_indent(aTHX_ level, file, "PADIX = %" IVdf "\n", (IV)cPADOPo->op_padix);
#else
- if (cSVOPo->op_sv) {
- SV *tmpsv = NEWSV(0,0);
- STRLEN n_a;
- ENTER;
- SAVEFREESV(tmpsv);
- gv_fullname3(tmpsv, (GV*)cSVOPo->op_sv, Nullch);
- Perl_dump_indent(aTHX_ level, file, "GV = %s\n", SvPV(tmpsv, n_a));
- LEAVE;
+ if ( ! PL_op->op_flags & OPf_SPECIAL) { /* not lexical */
+ if (cSVOPo->op_sv) {
+ SV *tmpsv = NEWSV(0,0);
+ STRLEN n_a;
+ ENTER;
+ SAVEFREESV(tmpsv);
+ gv_fullname3(tmpsv, (GV*)cSVOPo->op_sv, Nullch);
+ Perl_dump_indent(aTHX_ level, file, "GV = %s\n", SvPV(tmpsv, n_a));
+ LEAVE;
+ }
+ else
+ Perl_dump_indent(aTHX_ level, file, "GV = NULL\n");
}
- else
- Perl_dump_indent(aTHX_ level, file, "GV = NULL\n");
#endif
break;
case OP_CONST: