From ee3e756d0633dc54b741d94098adc6d20a3f0e1d Mon Sep 17 00:00:00 2001 From: Robin Houston Date: Thu, 29 Mar 2001 21:47:56 +0100 Subject: [PATCH] PATCH: B::Debug should show LOOP-specific fields Message-ID: <20010329204756.A32042@puffinry.freeserve.co.uk> p4raw-id: //depot/perl@9460 --- ext/B/B/Debug.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ext/B/B/Debug.pm b/ext/B/B/Debug.pm index 1327591..71540a1 100644 --- a/ext/B/B/Debug.pm +++ b/ext/B/B/Debug.pm @@ -33,6 +33,16 @@ sub B::BINOP::debug { printf "\top_last\t\t0x%x\n", ${$op->last}; } +sub B::LOOP::debug { + 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 +EOT +} + sub B::LOGOP::debug { my ($op) = @_; $op->B::UNOP::debug(); -- 2.7.4