projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3979fd7
)
PATCH: B::Debug should show LOOP-specific fields
author
Robin Houston
<robin@cpan.org>
Thu, 29 Mar 2001 20:47:56 +0000
(21:47 +0100)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Fri, 30 Mar 2001 02:17:07 +0000
(
02:17
+0000)
Message-ID: <
20010329204756
.A32042@puffinry.freeserve.co.uk>
p4raw-id: //depot/perl@9460
ext/B/B/Debug.pm
patch
|
blob
|
history
diff --git
a/ext/B/B/Debug.pm
b/ext/B/B/Debug.pm
index
1327591
..
71540a1
100644
(file)
--- 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();