my ($op) = @_;
$op->B::BINOP::debug();
printf <<'EOT', ${$op->redoop}, ${$op->nextop}, ${$op->lastop};
- op_redoop 0x%x
- op_nextop 0x%x
- op_lastop 0x%x
+ op_redoop 0x%x
+ op_nextop 0x%x
+ op_lastop 0x%x
EOT
}
sub B::COP::debug {
my ($op) = @_;
$op->B::OP::debug();
- printf <<'EOT', $op->label, $op->stashpv, $op->file, $op->seq, $op->arybase, $op->line, ${$op->warnings};
+ my $cop_io = class($op->io) eq 'SPECIAL' ? '' : $op->io->as_string;
+ printf <<'EOT', $op->label, $op->stashpv, $op->file, $op->seq, $op->arybase, $op->line, ${$op->warnings}, cstring($cop_io);
cop_label %s
cop_stashpv %s
cop_file %s
cop_arybase %d
cop_line %d
cop_warnings 0x%x
+ cop_io %s
EOT
}
printf "\top_padix\t\t%ld\n", $op->padix;
}
-sub B::CVOP::debug {
- my ($op) = @_;
- $op->B::OP::debug();
- printf "\top_cv\t\t0x%x\n", ${$op->cv};
-}
-
sub B::NULL::debug {
my ($sv) = @_;
if ($$sv == ${sv_undef()}) {
GV 0x%x
FILE %s
DEPTH %d
- PADLIST 0x%x
+ PADLIST 0x%x
OUTSIDE 0x%x
OUTSIDE_SEQ %d
EOT
my(@array) = $av->ARRAY;
print "\tARRAY\t\t(", join(", ", map("0x" . $$_, @array)), ")\n";
printf <<'EOT', scalar(@array), $av->MAX, $av->OFF, $av->AvFLAGS;
- FILL %d
+ FILL %d
MAX %d
OFF %d
AvFLAGS %d
EOT
}
-
+
sub B::GV::debug {
my ($gv) = @_;
if ($done_gv{$$gv}++) {