PATCH: B::Debug should show LOOP-specific fields
Robin Houston [Thu, 29 Mar 2001 20:47:56 +0000 (21:47 +0100)]
Message-ID: <20010329204756.A32042@puffinry.freeserve.co.uk>

p4raw-id: //depot/perl@9460

ext/B/B/Debug.pm

index 1327591..71540a1 100644 (file)
@@ -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();