summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-10-29 03:00:21 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-10-29 03:00:21 +0000
commit7934575e193741c310ddb7f01d6d07c9981c3d29 (patch)
tree9b9135ad0559f0da22a2bb159f0a38bb81777f07 /dump.c
parenta1f333424726116552fec059c74f91eae67b2820 (diff)
downloadperl-7934575e193741c310ddb7f01d6d07c9981c3d29.tar.gz
usurp GVOP slot for new PADOP (one small step to making optree
shareable across interpreters) p4raw-id: //depot/perl@4484
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/dump.c b/dump.c
index f2f75f0ca9..9acb9271a6 100644
--- a/dump.c
+++ b/dump.c
@@ -512,11 +512,11 @@ Perl_do_op_dump(pTHX_ I32 level, PerlIO *file, OP *o)
switch (o->op_type) {
case OP_GVSV:
case OP_GV:
- if (cGVOPo->op_gv) {
+ if (cSVOPo->op_sv) {
SV *tmpsv = NEWSV(0,0);
ENTER;
SAVEFREESV(tmpsv);
- gv_fullname3(tmpsv, cGVOPo->op_gv, Nullch);
+ gv_fullname3(tmpsv, (GV*)cSVOPo->op_sv, Nullch);
Perl_dump_indent(aTHX_ level, file, "GV = %s\n", SvPV(tmpsv, n_a));
LEAVE;
}
@@ -570,6 +570,15 @@ Perl_do_op_dump(pTHX_ I32 level, PerlIO *file, OP *o)
case OP_SUBST:
do_pmop_dump(level, file, cPMOPo);
break;
+ case OP_LEAVE:
+ case OP_LEAVEEVAL:
+ case OP_LEAVESUB:
+ case OP_LEAVESUBLV:
+ case OP_LEAVEWRITE:
+ case OP_SCOPE:
+ if (o->op_private & OPpREFCOUNTED)
+ Perl_dump_indent(aTHX_ level, file, "REFCNT = %"UVuf"\n", (UV)o->op_targ);
+ break;
default:
break;
}