Print it in B::Debug. Can be used later in B::Deparse to deparse
the open pragma.
p4raw-id: //depot/perl@18856
=item stash
+=item stashpv
+
=item file
=item cop_seq
=item line
+=item warnings
+
+=item io
+
=back
#define COP_arybase(o) o->cop_arybase
#define COP_line(o) CopLINE(o)
#define COP_warnings(o) o->cop_warnings
+#define COP_io(o) o->cop_io
MODULE = B PACKAGE = B::COP PREFIX = COP_
COP_warnings(o)
B::COP o
+B::SV
+COP_io(o)
+ B::COP o
+
MODULE = B PACKAGE = B::SV PREFIX = Sv
U32
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
}