From: Robin Houston Date: Thu, 10 May 2001 01:02:08 +0000 (+0100) Subject: Show string for PVOP, and referent for RV X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3267896c2a355f0459fb95ce88d4e63144105be5;p=p5sagit%2Fp5-mst-13.2.git Show string for PVOP, and referent for RV Message-ID: <20010510010208.A18200@penderel> p4raw-id: //depot/perl@10063 --- diff --git a/ext/B/B/Debug.pm b/ext/B/B/Debug.pm index 049195b..c69bfbf 100644 --- a/ext/B/B/Debug.pm +++ b/ext/B/B/Debug.pm @@ -90,7 +90,7 @@ sub B::SVOP::debug { sub B::PVOP::debug { my ($op) = @_; $op->B::OP::debug(); - printf "\top_pv\t\t0x%x\n", $op->pv; + printf "\top_pv\t\t%s\n", cstring($op->pv); } sub B::PADOP::debug { @@ -127,6 +127,15 @@ sub B::SV::debug { EOT } +sub B::RV::debug { + my ($rv) = @_; + B::SV::debug($rv); + printf <<'EOT', ${$rv->RV}; + RV 0x%x +EOT + $rv->RV->debug; +} + sub B::PV::debug { my ($sv) = @_; $sv->B::SV::debug();